diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-12-11 06:19:49 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-12-11 06:19:49 +0000 |
commit | ed4a7c3675bdd09426c5137a693224b6adf4da2f (patch) | |
tree | 81d5d3ef0ee160422d3a54f8eb86d6a5593001a7 /scripts/auto-build/pure-data-cvs-rsync-checkout | |
parent | e0a32fddde586a27a00d66e2c0c9f7bb1fb7e3e8 (diff) |
made script use a function to make it easy to add more distros
svn path=/trunk/; revision=6788
Diffstat (limited to 'scripts/auto-build/pure-data-cvs-rsync-checkout')
-rwxr-xr-x | scripts/auto-build/pure-data-cvs-rsync-checkout | 32 |
1 files changed, 13 insertions, 19 deletions
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 |