Changeset 1661 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm
- Timestamp:
- Oct 21, 2012, 2:38:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1660 r1661 40 40 41 41 our @ISA = qw(Exporter); 42 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init pb_get_arch pb_get_osrelease pb_check_requirements pb_check_req pb_path_expand $pbdebug $pbLOG $pbdisplaytype $pblocale);42 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init pb_get_arch pb_get_osrelease pb_check_requirements pb_check_req pb_path_expand pb_exit $pbdebug $pbLOG $pbdisplaytype $pblocale); 43 43 ($VERSION,$REVISION) = pb_version_init(); 44 44 … … 390 390 }; 391 391 if ($@) { 392 # No Pod::Usage found not printing usage. Ole perl only 392 # No Pod::Usage found not printing usage. Old perl only 393 pb_exit(); 393 394 } else { 394 395 pod2usage( -message => $pbsynmsg, … … 433 434 pb_mkdir_p("$ENV{'TMPDIR'}/$template"); 434 435 } else { 435 $cleanup = 0 if ($pbdebug >=1);436 $cleanup = 0 if ($pbdebug gt 1); 436 437 $ENV{'PBTMP'} = tempdir( "pb.XXXXXXXXXX", DIR => $ENV{'TMPDIR'}, CLEANUP => $cleanup ); 437 438 } … … 558 559 } 559 560 561 562 =item B<pb_exit> 563 564 Fundtion to call before exiting pb so cleanup is done 565 566 =cut 567 568 sub pb_exit { 569 570 my $ret = shift || 0; 571 pb_log(0,"Please remove manually $ENV{'PBTMP'} after debug analysis\n" if ($pbdebug gt 1); 572 exit($ret); 573 } 574 560 575 =back 561 576
Note:
See TracChangeset
for help on using the changeset viewer.