Ignore:
Timestamp:
Oct 8, 2006, 11:48:30 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Build process reviewed to fix again bug #79
  • MONDOTMP now used uniformaly across all scripts
  • mandriva has its own set of variables
  • svn2build should now generate directories in the right place
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2qemu

    r757 r882  
    4545fi
    4646
    47 mkdir -p $TMP
    48 cat > $TMP/mkmondo << EOF
     47cat > $MONDOTMP/mkmondo << EOF
    4948#!/bin/bash
    5049
     
    5756$TOOLHOME/pkg2ftp $LAST
    5857EOF
    59 chmod 755 $TMP/mkmondo
     58chmod 755 $MONDOTMP/mkmondo
    6059
    6160if [ $single -eq 0 ]; then
     
    6362fi
    6463cd $TOOLHOME/..
    65 tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG
     64tar cfz $MONDOTMP/mkmondo.tar.gz $TOOLHOME $MONDOTMP/mkmondo $TOPDIR/${VER}-$TAG
    6665
    6766for m in $VMS; do
     
    6968    if [ ! -f /users/qemu/$m.qemu ]; then
    7069            echo "VM unaccessible. Verify NFS mount"
    71             rm -rf $TMP
     70            rm -rf $MONDOTMP
    7271            exit -1
    7372    fi
     
    8281        sleep 300
    8382    fi
    84     scp -P $sp $TMP/mkmondo.tar.gz ~/.rpmmacros ~/.rpmrc bruno@localhost:
     83    scp -P $sp $MONDOTMP/mkmondo.tar.gz ~/.rpmmacros ~/.rpmrc bruno@localhost:
    8584    rdate=`date "+%m%d%H%M"`
    8685    ssh -p $sp root@localhost "date $rdate"
    87     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
    88     #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo ; rm -f $TMP" | tee $TMP/mkvm.log
     86    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
     87    #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo ; rm -f $MONDOTMP" | tee $MONDOTMP/mkvm.log
    8988    if [ $vmp -eq 1 ]; then
    9089        ssh -p $sp root@localhost "halt -p"
     
    9998
    10099# Should be removed at the end
    101 rm -rf $TMP
     100rm -rf $MONDOTMP
    102101) 2>&1 | tee /tmp/build2qemu.log
Note: See TracChangeset for help on using the changeset viewer.