Ignore:
Timestamp:
Oct 17, 2007, 1:40:52 PM (13 years ago)
Author:
Bruno Cornec
Message:

Remove DOCDIR usage in mindi + various build fixes

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/tools/updateqemu

    r1681 r1682  
    33(
    44if [ _"$1" == _"" ]; then
    5     echo "Syntax: setupqemu VM"
     5    echo "Syntax: updateqemu VM|all"
    66    exit -1
    77fi
    8 cat /users/bruno/pb/svn/devel/pb/contrib/pbsetupqemu /users/bruno/pb/svn/devel/pb/lib/ProjectBuilder/Distribution.pm > /tmp/pbscript
    9 for m in $*; do
    10     pb -r `pwd` -p mondorescue -m $m -a root -s /tmp/pbscript script2vm ; pb -p mondorescue -m $m build2vm
    11     ssh -p 2222 root@localhost halt
     8if [ _"$1" == _"all" ]; then
     9    opt="`grep vmlist  ~/.pbrc | grep mondorescue | cut -d= -f2 | sed 's/,/ /g'`"
     10    opt64="`echo $opt | sed 's/ /_64 /g'`"
     11    #opt="$opt $opt64"
     12    opt="$opt64"
     13else
     14    opt="`echo $* | sed 's/,/ /g'`"
     15fi
     16
     17export PBPROJ=pb
     18export PBROOT=/users/bruno/pb/svn/0.8.5
     19
     20for m in $opt; do
     21    cat /users/bruno/pb/svn/devel/pb/contrib/pbsetupqemu /users/bruno/pb/svn/devel/pb/lib/ProjectBuilder/Distribution.pm > /tmp/pbscript
     22    echo "Launching script on $m"
     23    pb -m $m -a root -s /tmp/pbscript script2vm
     24    pb -m $m build2vm
     25    echo "Halting $m"
     26    echo "/sbin/halt -p" > /tmp/pbscript
     27    pb -m $m -a root -s /tmp/pbscript script2vm
    1228    sleep 120
    13     ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill -9
     29    job=`ps auhxww | grep qemu | grep -Ev 'grep|updateqemu' | awk '{print $2}'`
     30    if [ _"$job" != _"" ]; then
     31        echo "Really halting $m"
     32        kill $job
     33    fi
    1434done
    15 ) 2>&1 | tee /tmp/setupqemu.log
     35) 2>&1 | tee /tmp/updateqemu.log
Note: See TracChangeset for help on using the changeset viewer.