Changeset 495 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Jul 10, 2008, 11:36:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r494 r495 339 339 } 340 340 if (defined $opts{'v'}) { 341 $ debug = $opts{'v'};341 $pbdebug = $opts{'v'}; 342 342 } 343 343 if (defined $opts{'f'}) { … … 345 345 } 346 346 if (defined $opts{'q'}) { 347 $ debug=-1;347 $pbdebug=-1; 348 348 } 349 349 if (defined $opts{'l'}) { 350 open(LOG,"> $opts{'l'}") || die "Unable to log to $opts{'l'}: $!"; 351 $LOG = \*LOG; 352 $debug = 0 if ($debug == -1); 353 } 354 pb_log_init($debug, $LOG); 350 open(pbLOG,"> $opts{'l'}") || die "Unable to log to $opts{'l'}: $!"; 351 $pbLOG = \*pbLOG; 352 $pbdebug = 0 if ($pbdebug == -1); 353 } 354 pb_log_init($pbdebug, $pbLOG); 355 pb_display_init("text",""); 355 356 356 357 # Handle root of the project if defined … … 1528 1529 use File::Copy; 1529 1530 1530 our $ debug;1531 our $ LOG;1532 our $ synmsg = "pbscript";1533 pb_log_init($ debug, $LOG);1531 our $pbdebug; 1532 our $pbLOG; 1533 our $pbsynmsg = "pbscript"; 1534 pb_log_init($pbdebug, $pbLOG); 1534 1535 pb_temp_init(); 1535 1536 … … 1774 1775 pb_system("emerge wget sudo ntp DateManip File-MimeInfo","$cmtall"); 1775 1776 } else { 1776 p rint "No pkg to install\n";1777 pb_log(0,"No pkg to install\n"); 1777 1778 } 1778 1779 EOF … … 1839 1840 # Get subject line 1840 1841 my $sl = "Project $ENV{'PBPROJ'} version $ENV{'PBPROJVER'} is now available"; 1841 p rint "Please enter the title of your announce\n";1842 p rint "(By default: $sl)\n";1842 pb_log(0,"Please enter the title of your announce\n"); 1843 pb_log(0,"(By default: $sl)\n"); 1843 1844 my $sl2 = <STDIN>; 1844 1845 $sl = $sl2 if ($sl2 !~ /^$/);
Note:
See TracChangeset
for help on using the changeset viewer.