--- builds_bin/build_all 2007/04/27 21:32:05 1.19 +++ builds_bin/build_all 2007/06/12 14:56:43 1.23 @@ -48,32 +48,36 @@ build_package() fi } -for package in $(ls /mirrors/cvsroot/smeserver | grep "^$1.*$") +for package in $(ls /mirrors/cvsroot/${2:-smeserver} | grep "^$1.*$") do case $package in - CVSROOT|anaconda|booty|builds_bin|cdrom.image|devguide|isolinux) + CVSROOT|builds_bin|cdrom.image|common|devguide|isolinux|rpms) + cd ~/work/$(hostname -s) + rm -rf ~/work/$(hostname -s)/$package continue ;; esac - LOG=$HOME/logs/$package.log + LOG=$HOME/work/$(hostname -s)/logs/$package.log > $LOG echo -n "Checking $package "; date (echo -n "Checking $package "; date) >> $LOG echo ========================================================== >> $LOG - cd ~/work - rm -rf ~/work/$package - mzget --dir /mirrors/cvsroot/smeserver $package >> $LOG + cd ~/work/$(hostname -s) + rm -rf ~/work/$(hostname -s)/$package + mzget --dir /mirrors/cvsroot/${2:-smeserver} $package >> $LOG - cd ~/work/$package + cd ~/work/$(hostname -s)/$package SPEC=$(ls F/*.spec 2> /dev/null | tail -1) if [ -z "$SPEC" ] then echo "Not building $package (No SPEC file)" rm -f $LOG + cd ~/work/$(hostname -s) + rm -rf ~/work/$(hostname -s)/$package continue else TAGS=$(cvs status -v $SPEC | awk '/\(branch:/ && !/\(branch: 1\.1\.1\)/ { print $1 }' | sort -u) @@ -87,11 +91,11 @@ do echo -n "Checking $package ($tag) "; date (echo -n "Checking $package ($tag) "; date) >> $LOG echo ========================================================== >> $LOG - cd ~/work - rm -rf ~/work/$package - mzget --dir /mirrors/cvsroot/smeserver --tag $tag $package >> $LOG + cd ~/work/$(hostname -s) + rm -rf ~/work/$(hostname -s)/$package + mzget --dir /mirrors/cvsroot/${2:-smeserver} --tag $tag $package >> $LOG - cd ~/work/$package + cd ~/work/$(hostname -s)/$package SPEC=$(ls F/*.spec 2> /dev/null | tail -1) if [ -z "$SPEC" ]