Update of /cvsroot/pure-data/scripts/auto-build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20159
Added Files: prep-auto-build-upload pure-data-cvs-rsync pure-data-cvs-rsync-checkout run-automated-builder Log Message: working scripts from compile farm master, pd-debian-stable
--- NEW FILE: prep-auto-build-upload --- #!/bin/sh
# prepare a directory per date for the auto-builders to upload to
DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S`
BUILD_ROOT="/var/www/auto-build" TODAYS_ROOT="${BUILD_ROOT}/${DATE}"
chown -R root.root "${BUILD_ROOT}" mkdir "${TODAYS_ROOT}" chown nobody.nogroup "${TODAYS_ROOT}"
--- NEW FILE: pure-data-cvs-rsync --- #!/bin/sh
SYSTEM=`uname -s` DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S` SCRIPT=`echo $0| sed 's|.*/(.*)|\1|g'` LOGFILE=/home/pd/logs/${DATE}_-_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
VERBOSE_FLAGS=-v #VERBOSE_FLAGS="-v --progress"
touch $LOGFILE
echo "rsync pure-data" >> $LOGFILE 2>&1 echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1 (/usr/bin/rsync -ax $VERBOSE_FLAGS --delete rsync://pure-data.cvs.sourceforge.net/cvsroot/p/pu/pure-data/ /home/pd/cvsroot/pure-data/ || /usr/bin/logger -i -p local6.warning -t "$0" "rsync pure-data CVS FAILED") >> $LOGFILE 2>&1
echo "chown -R pd /home/pd/cvsroot/pure-data" >> $LOGFILE 2>&1 echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1 chown -R pd /home/pd/cvsroot/pure-data >> $LOGFILE 2>&1
echo "rsync pd-gem" >> $LOGFILE 2>&1 echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1 (/usr/bin/rsync -ax $VERBOSE_FLAGS --delete rsync://pd-gem.cvs.sourceforge.net/cvsroot/p/pd/pd-gem/ /home/pd/cvsroot/pd-gem || /usr/bin/logger -i -p local6.warning -t "$0" "rsync pd-gem CVS FAILED") >> $LOGFILE 2>&1
echo "chown -R pd /home/pd/cvsroot/pd-gem" >> $LOGFILE 2>&1 echo "----------------------------------------------------------------------" >> $LOGFILE 2>&1 chown -R pd /home/pd/cvsroot/pd-gem >> $LOGFILE 2>&1
--- NEW FILE: pure-data-cvs-rsync-checkout --- #!/bin/sh
SYSTEM=`uname -s` DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S` SCRIPT=`echo $0| sed 's|.*/(.*)|\1|g'` LOGFILE=/home/pd/logs/${DATE}_-_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
touch $LOGFILE
# standard update su pd -c "/home/pd/rsync/pure-data/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1
# some files are missing, so remove the whole shebang... rm -rf /home/pd/rsync/pure-data/pd/portaudio* >> $LOGFILE 2>&1
# then replace it with a SVN snapshot su pd -c "cd /home/pd/rsync/pure-data/pd/ && tar xzf ../../pa_snapshot_v19.tar.gz" \ >> $LOGFILE 2>&1
--- NEW FILE: run-automated-builder --- #!/bin/sh
HOSTNAME=`hostname` SYSTEM=`uname -s` DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S` SCRIPT=`echo $0| sed 's|.*/(.*)|\1|g'` LOGFILE=/home/pd/logs/${DATE}_-_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
touch ${LOGFILE}
su - pd -c /home/pd/auto-build/scripts/automated-builder.sh >> $LOGFILE 2>&1
# upload files to webpage rsync -a /home/pd/auto-build/packages/linux_make/build/Pd*.tar.bz2 rsync://128.238.56.50/upload/${DATE}/`ls -1 /home/pd/auto-build/packages/linux_make/build/Pd*.tar.bz2 | sed "s|.*/(.*)tar.bz2|\1${HOSTNAME}.tar.bz2|"` >> $LOGFILE 2>&1
# send status report SUBJECT="$HOSTNAME Pd-$SYSTEM build results $DATE $TIME" tail -200 ${LOG_FILE} | mail -s "${SUBJECT}" hans@eds.org