aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/run-automated-builder
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-10-24 04:21:35 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-10-24 04:21:35 +0000
commit2d881ff4f82bc4be019e76efef080a63fd216099 (patch)
treec23f23f0f33b3458406f37284a5c84885f2b88d9 /scripts/auto-build/run-automated-builder
parent982d9823a3f4978b211841adff80c9bc6166c4e9 (diff)
switched from if to case statement so I can use a wildcard at the end of the test for mingw, since the uname varies depending on the Windows version
svn path=/trunk/; revision=6158
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-xscripts/auto-build/run-automated-builder14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder
index 4d9dbe15..28a9b3c3 100755
--- a/scripts/auto-build/run-automated-builder
+++ b/scripts/auto-build/run-automated-builder
@@ -16,11 +16,15 @@ run_build_script ()
sh /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh >> $LOGFILE 2>&1
-if [ "x$SYSTEM" == "xmingw" ]; then
- /c/cygwin/bin/sh --login -c "rsync -a ${LOGFILE} rsync://128.238.56.50/upload/${DATE}/logs/"
-else
- rsync -a ${LOGFILE} rsync://128.238.56.50/upload/${DATE}/logs/
-fi
+ case $SYSTEM in
+ mingw*)
+ /c/cygwin/bin/sh --login -c \
+ "rsync -a ${LOGFILE} rsync://128.238.56.50/upload/${DATE}/logs/"
+ ;;
+ *)
+ rsync -a ${LOGFILE} rsync://128.238.56.50/upload/${DATE}/logs/
+ ;;
+ esac
# send status report if something failed
completion_test=`tail -1 ${LOGFILE}`