Ignore:
Timestamp:
May 30, 2006, 10:51:12 PM (13 years ago)
Author:
bcornec
Message:

Build process fixes following first attempt to deliver 2.0.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0.8/tools/build2qemu

    r591 r597  
    3939if [ _"$1" == _"" ]; then
    4040    export VMS=`cat ${TOOLHOME}/DISTROS`
     41    single=0
    4142else
    42     export VMS="$1"
     43    export VMS="$*"
     44    single=1
    4345fi
    4446
     
    5254export TOOLHOME=$TOOLHOME
    5355
    54 $TOOLHOME/build2pkg $LAST
    55 $TOOLHOME/pkg2ftp
     56$TOOLHOME/build2pkg $LAST < /dev/null
     57$TOOLHOME/pkg2ftp $LAST
    5658EOF
    5759chmod 755 $TMP/mkmondo
    5860
    59 $TOOLHOME/files2ftp
     61if [ $single -eq 0 ]; then
     62    $TOOLHOME/file2ftp
     63fi
    6064cd $TOOLHOME/..
    6165tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG
     
    6872            exit -1
    6973    fi
     74    export sp=2222
    7075    ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu
    71     export sp=2222
    7276    if [ $? -ne 0 ]; then
    7377        # Virtual machine alreday started
     
    7680        sleep 300
    7781    fi
     82    ssh -p $sp root@localhost "perl -pi -e 's|/home/bruno|/users/bruno|' /etc/passwd /home/bruno/.rpmmacros ; mv /home /users; rpm -e tetex tetex-latex passivetex jadetex texinfo xmltex linuxdoc-tools xmlto docbook-utils-pdf subversion tetex-context tetex-dvips docbook-utils"
    7883    scp -P $sp $TMP/mkmondo.tar.gz bruno@localhost:
    79     ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
     84    ssh -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
    8085    #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo ; rm -f $TMP" | tee $TMP/mkvm.log
    8186    if [ $vmp -eq 1 ]; then
    8287        ssh -p $sp root@localhost "halt -p"
    8388        sleep 300
    84         proces=`ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu | awk '{print $2}'`
     89        proces=`ps auxww | grep qemu | grep -v grep | grep /users/qemu/$m.qemu | awk '{print $2}'`
    8590        if [ "$proces" != "" ]; then
    8691            kill $proces
Note: See TracChangeset for help on using the changeset viewer.