diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-10-24 04:21:35 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-10-24 04:21:35 +0000 |
commit | 2d881ff4f82bc4be019e76efef080a63fd216099 (patch) | |
tree | c23f23f0f33b3458406f37284a5c84885f2b88d9 /scripts/auto-build/pd-extended-auto-builder.sh | |
parent | 982d9823a3f4978b211841adff80c9bc6166c4e9 (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/pd-extended-auto-builder.sh')
-rwxr-xr-x | scripts/auto-build/pd-extended-auto-builder.sh | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index b8c32fce..145a2f99 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -60,15 +60,18 @@ upload_build () echo "upload specs $1 $2 $3" echo "Uploading $archive" upload_filename=`ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|"` - if [ "x$SYSTEM" == "xmingw" ]; then - test -e ${archive} && /c/cygwin/bin/sh --login -c "rsync -a ${archive} \ - rsync://128.238.56.50/upload/${DATE}/${upload_filename}" && \ - echo SUCCESS - else - test -e ${archive} && rsync -a ${archive} \ - rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \ - echo SUCCESS - fi + case $SYSTEM in + mingw*) + test -e ${archive} && /c/cygwin/bin/sh --login -c \ + "rsync -a ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename}" &&\ + echo SUCCESS + ;; + *) + test -e ${archive} && rsync -a ${archive} \ + rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \ + echo SUCCESS + ;; + esac } |