Changeset 599


Ignore:
Timestamp:
May 31, 2006, 12:19:51 AM (13 years ago)
Author:
bcornec
Message:

Again some building process bugs removed

Location:
branches/stable/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2pkg

    r596 r599  
    8080        mv $pv/distributions/${ddir}-$dver/$p.spec .
    8181        rm -rf $pv
    82         rm -rf ${TOPBUILDDIR}/RPMS/${ar}/*
    83         rm -rf ${TOPBUILDDIR}/SRPMS/*
    8482
    8583        rpmbuild -ba $p.spec 2> $log 1> $log
    86         egrep '^Wrote:' $log
    8784        if [ $? != 0 ]; then
    8885            cat $log
    8986            status=-1
    9087        fi
     88        egrep '^Wrote:' $log
    9189        rm -rf ${TOPBUILDDIR}/BUILD/*
    9290        cd ..
  • branches/stable/tools/build2qemu

    r596 r599  
    8181    fi
    8282    scp -P $sp $TMP/mkmondo.tar.gz bruno@localhost:
    83     ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
     83    rdate=`date "+%m%d%H%M"`
     84    ssh -p $sp root@localhost "date $rdate"
     85    ssh -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
    8486    #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo ; rm -f $TMP" | tee $TMP/mkvm.log
    8587    if [ $vmp -eq 1 ]; then
    8688        ssh -p $sp root@localhost "halt -p"
    8789        sleep 300
    88         proces=`ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu | awk '{print $2}'`
     90        proces=`ps auxww | grep qemu | grep -v grep | grep /users/qemu/$m.qemu | awk '{print $2}'`
    8991        if [ "$proces" != "" ]; then
    9092            kill $proces
Note: See TracChangeset for help on using the changeset viewer.