From ed4a7c3675bdd09426c5137a693224b6adf4da2f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 11 Dec 2006 06:19:49 +0000 Subject: made script use a function to make it easy to add more distros svn path=/trunk/; revision=6788 --- scripts/auto-build/pure-data-cvs-rsync-checkout | 32 ++++++++++--------------- 1 file changed, 13 insertions(+), 19 deletions(-) (limited to 'scripts/auto-build') diff --git a/scripts/auto-build/pure-data-cvs-rsync-checkout b/scripts/auto-build/pure-data-cvs-rsync-checkout index 43ece035..bfeca6bc 100755 --- a/scripts/auto-build/pure-data-cvs-rsync-checkout +++ b/scripts/auto-build/pure-data-cvs-rsync-checkout @@ -9,24 +9,18 @@ SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` 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 +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 +} -# 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 +touch $LOGFILE -# 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 +update_distro pd-extended +update_distro pd-extended-release +update_distro pd-main +update_distro pd-devel -- cgit v1.2.1