Changeset 492 for devel/pb/bin/pb


Ignore:
Timestamp:
Jun 19, 2008, 12:41:21 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug on script2vm which wasn't working anymore.
  • Makes script execution verbose
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r490 r492  
    867867    if (($cmt eq "vm") || ($cmt eq "ve")) {
    868868        $src="$src $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb $ENV{'PBDESTDIR'}/$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.pb $ENV{'PBETC'} $ENV{'PBDESTDIR'}/pbrc $ENV{'PBDESTDIR'}/pbscript";
    869     } elsif (($cmt eq "Script") || ($cmt eq "Announce")) {
     869    } elsif ($cmt eq "Script") {
     870        $src="$src $ENV{'PBDESTDIR'}/pbscript";
     871    } elsif ($cmt eq "Announce") {
    870872        $src="$src $ENV{'PBTMP'}/pbscript";
    871873    } elsif ($cmt eq "Packages") {
     
    10511053    #pb_system("cd $cptarget ; sudo chown -R $sshlogin->{$ENV{'PBPROJ'}} .","$cmt chown in $cptarget to $sshlogin->{$ENV{'PBPROJ'}}");
    10521054    #}
    1053     pb_system("$shcmd \"echo \'cd $tdir ; if [ -f pbscript ]; then ./pbscript; fi ; rm -f ./pbscript\' | bash\"","Executing pbscript on $cptarget if needed");
     1055    pb_system("$shcmd \"echo \'cd $tdir ; if [ -f pbscript ]; then ./pbscript; fi ; rm -f ./pbscript\' | bash\"","Executing pbscript on $cptarget if needed","verbose");
    10541056    if (($cmt eq "vm") || ($cmt eq "ve")) {
    10551057        # Get back info on pkg produced, compute their name and get them from the VM
Note: See TracChangeset for help on using the changeset viewer.