Changeset 105 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Sep 4, 2007, 10:14:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r102 r105 112 112 pb_cms2build(); 113 113 pb_build2vm(); 114 } elsif ($action =~ /^cms2ssh$/) { 115 pb_cms2build(); 116 pb_build2vm(); 117 pb_build2ssh(); 118 pb_pkg2ssh(); 114 119 } else { 115 120 print $LOG "'$action' is not available\n"; … … 401 406 } 402 407 408 sub pb_build2vm { 409 my ($vm,$all) = pb_get_vm(); 410 } 411 403 412 sub pb_get_pkg { 404 413 … … 423 432 } 424 433 434 # 435 # Return the list of VMs we are working on 436 # $all is a flag to know if we return all of them 437 # or only some (if all we publish also tar files in addition to pkgs 438 # 425 439 sub pb_get_vm { 426 440 427 441 my @vm; 442 my $all = 0; 428 443 429 444 # Get VM list 430 if (not defined $ENV{'PBVM'}) { 431 @vm = keys %defpkgdir; 432 } elsif ($ENV{'PBVM'} =~ /^all$/) { 433 @vm = keys %defpkgdir; 434 if (defined %extpkgdir) { 435 my $k = keys %extpkgdir; 436 if (defined $k) { 437 push(@vm, keys %extpkgdir); 438 } 439 } 440 } else { 441 @vm = $ENV{'PBVM'}; 442 } 445 if ((not defined $ENV{'PBVM'}) || ($ENV{'PBVM'} =~ /^all$/)) { 446 my $ptr = pb_conf_get("vmlist"); 447 $ENV{'PBVM'} = $ptr->{$ENV{'PBPROJ'}}; 448 $all = 1; 449 } 450 @vm = split(/,/,$ENV{'PBVM'}); 443 451 print $LOG "VMs: ".join(',',@vm)."\n" if ($debug >= 0); 444 return(\@vm );452 return(\@vm,$all); 445 453 } 446 454 … … 470 478 print "pb (aka project-builder) Version $projectbuilderver-$projectbuilderrev\n"; 471 479 print "\n"; 472 print "Syntax: pb [-vhqt][-r pbroot][-p project][-m \"mach-1 ...\"] <action> [<pkg1>...]\n";480 print "Syntax: pb [-vhqt][-r pbroot][-p project][-m \"mach-1[,...]\"] <action> [<pkg1>...]\n"; 473 481 print "\n"; 474 482 print "-h : This help file\n"; … … 487 495 print " (or use the env variable PBROOT) \n"; 488 496 print "\n"; 497 print "<params> can be the name of packages\n"; 489 498 print "<action> can be:\n"; 490 499 print "\n"; 491 print "\tcms2build: Create a tar file ofthe project under your CMS\n";500 print "\tcms2build: Create tar files for the project under your CMS\n"; 492 501 print "\t CMS supported are SVN and CVS\n"; 493 502 print "\t parameters are packages to build\n"; … … 500 509 print "\t if not using default list\n"; 501 510 print "\n"; 511 print "\tbuild2ssh: Send the tar files to a SSH host \n"; 512 print "\n"; 513 print "\tpkg2ssh: Send the packages built to a SSH host \n"; 514 print "\n"; 502 515 print "\tcms2pkg: cms2build + build2pkg\n"; 503 516 print "\n";
Note:
See TracChangeset
for help on using the changeset viewer.