Update of /cvsroot/pure-data/scripts/auto-build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10782
Modified Files: pure-data-cvs-rsync-checkout Log Message: made script use a function to make it easy to add more distros
Index: pure-data-cvs-rsync-checkout =================================================================== RCS file: /cvsroot/pure-data/scripts/auto-build/pure-data-cvs-rsync-checkout,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pure-data-cvs-rsync-checkout 18 Oct 2006 15:42:12 -0000 1.9 --- pure-data-cvs-rsync-checkout 11 Dec 2006 06:19:49 -0000 1.10 *************** *** 10,32 **** LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
! touch $LOGFILE ! ! # extended ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "pd-extended" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! su pd -c "/home/pd/rsync/pd-extended/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1
! # devel ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "pd-devel" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! su pd -c "cd /home/pd/rsync/pd-devel/pd && cvs up -Pd" >> $LOGFILE 2>&1 ! su pd -c "/home/pd/rsync/pd-devel/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1
! # main ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "pd-main" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! su pd -c "cd /home/pd/rsync/pd-main/pd && cvs up -APd" >> $LOGFILE 2>&1 ! su pd -c "/home/pd/rsync/pd-main/scripts/update-developer-layout.sh" >> $LOGFILE 2>&1 --- 10,26 ---- LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
! function update_distro () ! { ! distro=$1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! echo "$distro" >> $LOGFILE 2>&1 ! echo "------------------------------------------------------------" >> $LOGFILE 2>&1 ! /home/pd/rsync/$distro/scripts/update-developer-layout.sh >> $LOGFILE 2>&1 ! }
! touch $LOGFILE
! update_distro pd-extended ! update_distro pd-extended-release ! update_distro pd-main ! update_distro pd-devel