Changeset 974 in ProjectBuilder for devel/pb/bin/pb
- Timestamp:
- Feb 19, 2010, 4:17:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r971 r974 341 341 342 342 my ($projectbuilderver,$projectbuilderrev) = pb_version_init(); 343 my $appname = "pb"; 343 344 344 345 # Initialize the syntax string 345 346 346 pb_syntax_init(" pb(aka project-builder.org) Version $projectbuilderver-$projectbuilderrev\n");347 pb_syntax_init("$appname (aka project-builder.org) Version $projectbuilderver-$projectbuilderrev\n"); 347 348 348 349 GetOptions("help|?|h" => \$opts{'h'}, … … 417 418 $action = shift @ARGV; 418 419 die pb_syntax(-1,1) if (not defined $action); 420 421 # 422 # Check for command requirements 423 # 424 my ($req,$opt) = pb_conf_get_if("oscmd","oscmdopt"); 425 pb_check_requirements($req->{$appname},$opt->{$appname}); 419 426 420 427 my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir); … … 1790 1797 1791 1798 pb_system("sudo /usr/sbin/rinse --directory \"$vepath->{$ENV{'PBPROJ'}}/$ddir/$dver/$darch\" --arch \"$darch\" --distribution \"$ddir-$dver\" --config \"$veconf->{$ENV{'PBPROJ'}}\" $b4post $post $addpkgs $rinseverb","Creating the rinse VE for $ddir-$dver ($darch)", "verbose"); 1799 } elsif ($verpmstyle eq "rpmbootstrap") { 1800 my $rbsverb = ""; 1801 $rbsverb = "--verbose" if ($pbdebug gt 0); 1802 pb_system("sudo /usr/bin/rpmbootstrap $ddir-$dver-$darch $rbsverb","Creating the rpmboostrap VE for $ddir-$dver ($darch)", "verbose"); 1792 1803 } elsif ($verpmstyle eq "mock") { 1793 1804 pb_system("sudo /usr/sbin/mock --init --resultdir=\"/tmp\" --configdir=\"$veconf->{$ENV{'PBPROJ'}}\" -r $v","Creating the mock VE for $ddir-$dver ($darch)"); … … 2684 2695 2685 2696 # Allow for modification 2686 pb_system("vi $ENV{'PBTMP'}/announce.html","Allowing modification of the announce","noredir"); 2697 my $editor = "vi"; 2698 $editor = $ENV{'EDITOR'} if (defined $ENV{'EDITOR'}); 2699 pb_system("$editor $ENV{'PBTMP'}/announce.html","Allowing modification of the announce","noredir"); 2687 2700 2688 2701 # Store it in DB for external usage (Web pages generation)
Note:
See TracChangeset
for help on using the changeset viewer.