Changeset 203 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Oct 14, 2007, 7:41:38 PM (17 years ago)
Author:
Bruno Cornec
Message:

use make and not the macro not portable
document Ubuntu 6.06 distribution detection hack
fix some VMs handling pb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r200 r203  
    455455    my $dir = shift || "sshdir";
    456456    my $port = shift || "sshport";
    457     my $tmout = shift || "120";
     457    my $tmout = shift || "vmtmout";
    458458    my $cmd = "";
    459459
     
    516516
    517517    print $LOG "Sources handled ($cmt): $src\n" if ($debug >= 0);
    518     my ($sshhost,$sshlogin,$sshdir,$sshport) = pb_conf_get($host,$login,$dir,$port);
     518    my ($sshhost,$sshlogin,$sshdir,$sshport,$vmtmout) = pb_conf_get($host,$login,$dir,$port,$tmout);
    519519    my $mac = "$sshlogin->{$ENV{'PBPROJ'}}\@$sshhost->{$ENV{'PBPROJ'}}";
    520520    # Overwrite account value if passed as parameter
     
    539539
    540540    $port = $sshport->{$ENV{'PBPROJ'}};
    541     my $tm = $tmout->{$ENV{'PBPROJ'}};
     541    my $tm = $vmtmout->{$ENV{'PBPROJ'}};
    542542    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");
    543543    pb_system("cd $ENV{'PBBUILDDIR'} ; scp -p -P $port $src $mac:$tdir 2> /dev/null","$cmt delivery in $tdir on $mac");
Note: See TracChangeset for help on using the changeset viewer.