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


Ignore:
Timestamp:
Dec 1, 2007, 6:30:51 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Document -i option
  • send packages before halting the VM (useful when you wait for them :-)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r285 r288  
    348348        }
    349349        close(PKG);
     350
     351        # Final cleanup
     352        pb_rm_rf($dest) if (-d $dest);
    350353    }
    351354}
     
    596599        close(KEEP);
    597600        pb_system("ssh -q -p $nport $mac \"rm -rf $tdir $bdir\"","VM cleanup on $mac");
     601        pb_send2ssh("Packages","$odir"."_"."$over");
    598602        if (! $vmexist) {
    599603            pb_system("ssh -q -p $nport $mac \"sudo /sbin/halt -p \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $vm halt (pid $vmpid)");
    600604        }
    601         pb_send2ssh("Packages","$odir"."_"."$over");
    602605        pb_rm_rf("$ENV{'PBBUILDDIR'}/$odir");
    603606    }
     
    870873    print "pb (aka project-builder) Version $projectbuilderver-$projectbuilderrev\n";
    871874    print "\n";
    872     print "Syntax: pb [-vhqt][-r pbroot][-p project][[-s script -a account -P port] -m \"mach-1[,...]\"] <action> [<pkg1>...]\n";
     875    print "Syntax: pb [-vhqt][-r pbroot][-p project][[-s script -a account -P port] -m \"mach-1[,...]\"][-i iso] <action> [<pkg1>...]\n";
    873876    print "\n";
    874877    print "-h : This help file\n";
     
    884887    print "             to execute on the related VMs.\n";
    885888    print "\n";
     889    print "-i iso     : Name of the ISO image of the distribution you want\n";
     890    print "             to install on the related VMs.\n";
     891    print "\n";
    886892    print "-a account : Name of the account to use\n";
    887893    print "             to connect on the related VMs.\n";
Note: See TracChangeset for help on using the changeset viewer.