- Timestamp:
- Mar 9, 2013, 10:22:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1708 r1712 320 320 321 321 Setup a remote machine for pb usage using the sandbox version of pb instead of the latest stable 322 Reserved to dev team. 323 324 =item B<build2setupvm> 325 326 Setup a virtual machine for pb usage using the build available 327 Reserved to dev team. 328 329 =item B<build2setupve> 330 331 Setup a virtual environment for pb usage using the build available 332 Reserved to dev team. 333 334 =item B<build2setuprm> 335 336 Setup a remote machine for pb usage using the build available 322 337 Reserved to dev team. 323 338 … … 896 911 die "This feature is limited to the pb project" if ($ENV{'PBPROJ'} ne $appname); 897 912 pb_cms2build("SandBox"); 913 pb_setup2v("vm","SandBox"); 914 } elsif ($action =~ /^build2setuprm$/) { 915 die "This feature is limited to the pb project" if ($ENV{'PBPROJ'} ne $appname); 916 pb_setup2v("rm","SandBox"); 917 } elsif ($action =~ /^build2setupve$/) { 918 die "This feature is limited to the pb project" if ($ENV{'PBPROJ'} ne $appname); 919 pb_setup2v("ve","SandBox"); 920 } elsif ($action =~ /^build2setupvm$/) { 921 die "This feature is limited to the pb project" if ($ENV{'PBPROJ'} ne $appname); 898 922 pb_setup2v("vm","SandBox"); 899 923 } elsif ($action =~ /^updaterm$/) { … … 2403 2427 $shcmd .= " \"echo \'cd $tdir ; if [ -x $pbscript ]; then ./$pbscript; fi ; rm -f ./$pbscript\' | bash\""; 2404 2428 } 2405 my $cmdverb = "verbose ";2429 my $cmdverb = "verbose_\[$v\] "; 2406 2430 if (($cmt eq "Announce") || ($cmt eq "CPAN")) { 2407 2431 $cmdverb = undef; … … 2720 2744 my $vtype = shift; 2721 2745 my $pbos = shift; 2746 my $nontp = shift || 0; 2722 2747 2723 2748 # VE gets time from parent OS. … … 2739 2764 my $upddate = strftime("%m%d%H%M%Y", @date); 2740 2765 my $dateline = "sudo /bin/date $upddate"; 2741 if ( defined $ntpline) {2766 if ((defined $ntpline) && ($nontp == 0)) { 2742 2767 return($ntpline); 2743 2768 } else { … … 2800 2825 2801 2826 print SCRIPT "echo ... Execution needed\n"; 2827 print SCRIPT "echo '==== Start of script $$ for $vtype $v =====\n"; 2802 2828 print SCRIPT "# This is in directory delivery\n"; 2803 2829 print SCRIPT "# Setup the variables required for building\n"; … … 2823 2849 print SCRIPT "echo setting up date with $ntpline\n"; 2824 2850 print SCRIPT "$ntpline\n"; 2851 print SCRIPT 'if [ $? -ne 0 ]; then\n'; 2852 # Force if bad status a trick using date 2853 $ntpline = pb_date2v($vtype,$pbos, 1); 2854 print SCRIPT " $ntpline\n"; 2855 print SCRIPT "fi\n"; 2825 2856 # Use potential local proxy declaration in case we need it to download repo, pkgs, ... 2826 2857 if (defined $ENV{'http_proxy'}) { … … 2874 2905 } 2875 2906 2876 print SCRIPT q{echo "********** Successful exit of script $$ for $v *********************"}, "\n";2907 print SCRIPT "echo '==== End of script $$ for $vtype $v =====\n"; 2877 2908 close(SCRIPT); 2878 2909 chmod 0755,"$ENV{'PBDESTDIR'}/pbscript.$$";
Note:
See TracChangeset
for help on using the changeset viewer.