Changeset 158 for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 28, 2007, 12:59:44 AM (13 years ago)
Author:
Bruno Cornec
Message:

Improves pbsetupqemu with pb build + pkg install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r152 r158  
    428428    my $dir = shift || "sshdir";
    429429    my $port = shift || "sshport";
     430    my $cmd = "";
    430431
    431432    # Get list of packages to build
     
    453454
    454455        if (($cmt eq "Sources") || ($cmt eq "VMs")) {
    455             $src="$src $ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.gz";
     456            $src = "$src $ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.gz";
     457            $cmd = "$cmd ; ln -sf $pbpkg-$pbver.tar.gz $pbpkg-latest.tar.gz";
    456458        }
    457459    }
     
    504506
    505507    $port = $sshport->{$ENV{'PBPROJ'}};
    506     pb_system("ssh -q -p $port $mac \"mkdir -p $tdir ; cd $tdir ; echo \'for i in $basesrc; do if [ -f \$i ]; then rm -f \$i; fi; done\' | bash\"","Preparing $tdir on $mac");
     508    pb_system("ssh -q -p $port $mac \"mkdir -p $tdir ; cd $tdir ; echo \'for i in $basesrc; do if [ -f \$i ]; then rm -f \$i; fi; done\ ; $cmd' | bash\"","Preparing $tdir on $mac");
    507509    pb_system("cd $ENV{'PBBUILDDIR'} ; scp -p -P $port $src $mac:$tdir 2> /dev/null","$cmt delivery in $tdir on $mac");
    508510    pb_system("ssh -q -p $port $mac \"echo \'cd $tdir ; if [ -f pbscript ]; then ./pbscript; fi\' | bash\"","Executing pbscript on $mac  if needed");
Note: See TracChangeset for help on using the changeset viewer.