Changeset 1043 in MondoRescue for trunk/tools/build2qemu


Ignore:
Timestamp:
Jan 8, 2007, 11:31:22 PM (18 years ago)
Author:
Bruno Cornec
Message:

merge -r978:1042 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/build2qemu

    r932 r1043  
    66#
    77
    8 #if [ _"$1" == _"" ]; then
     8#if [ _"$1" = _"" ]; then
    99    #echo "Syntax: build2qemu [version-tag [vm1]..|vmx]] )"
    1010    #exit -1
    1111#fi
    1212
    13 # Syntax: build2qemu [version-tag [vm1]..|vmx]]
     13# Syntax: build2qemu [version-tag [--pkg "pkg1...pkgn"] [vm1]..|vmx]]
    1414
    1515(
    1616dname=`dirname $0`
    1717prem=`echo $dname |cut -c1`
    18 if [ ${prem} == "/" ]; then
     18if [ _${prem} = _"/" ]; then
    1919    export TOOLHOME=$dname
    2020else
     
    3636echo "Working on ${VER}-$TAG"
    3737
    38 if [ _"$1" == _"" ]; then
     38if [ _"$1" = _"--pkg" ]; then
     39    shift
     40    c=$1
     41    shift
     42fi
     43
     44if [ _"$1" = _"" ]; then
    3945    export VMS=`cat ${TOOLHOME}/DISTROS`
    4046    single=0
     
    5258export TOOLHOME=$TOOLHOME
    5359
    54 $TOOLHOME/build2pkg $LAST < /dev/null
    55 $TOOLHOME/pkg2ftp $LAST
     60$TOOLHOME/build2pkg $LAST $c < /dev/null
     61$TOOLHOME/pkg2ftp $LAST $c
    5662EOF
    5763chmod 755 $MONDOTMP/mkmondo
     
    6874
    6975for m in $VMS; do
     76    echo "Working on $m"
    7077    vmp=0
    7178    if [ ! -f /users/qemu/$m.qemu ]; then
     
    8693    scp -P $sp $MONDOTMP/mkmondo.tar.gz ~/.rpmmacros ~/.rpmrc bruno@localhost:
    8794    rdate=`date "+%m%d%H%M"`
    88     ssh -p $sp root@localhost "date $rdate"
    89     ssh -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo " | tee $MONDOTMP/mkvm.log
     95    ssh -q -p $sp root@localhost "date $rdate"
     96    ssh -q -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo " | tee $MONDOTMP/mkvm.log
    9097    if [ $vmp -eq 1 ]; then
    91         ssh -p $sp root@localhost "halt -p"
     98        ssh -q -p $sp root@localhost "halt -p"
    9299        sleep 300
    93100        proces=`ps auxww | grep qemu | grep -v grep | grep /users/qemu/$m.qemu | awk '{print $2}'`
Note: See TracChangeset for help on using the changeset viewer.