aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-xscripts/auto-build/pd-extended-auto-builder.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh
index b427198b..0a63c9eb 100755
--- a/scripts/auto-build/pd-extended-auto-builder.sh
+++ b/scripts/auto-build/pd-extended-auto-builder.sh
@@ -62,14 +62,22 @@ upload_build ()
upload_filename=`ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|"`
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
+ if [ -e ${archive} ]; then
+ /c/cygwin/bin/sh --login -c \
+ "rsync -a ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename}" && \
+ md5sum ${archive} > ${archive}.md5 && \
+ /c/cygwin/bin/sh --login -c \
+ "rsync -a ${archive}.md5 rsync://128.238.56.50/upload/${DATE}/${upload_filename}.md5" && \
+ echo SUCCESS
+ fi
;;
*)
- test -e ${archive} && rsync -a ${archive} \
- rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \
- echo SUCCESS
+ if [ -e ${archive} ]; then
+ rsync -a ${archive} rsync://128.238.56.50/upload/${DATE}/${upload_filename} && \
+ md5sum ${archive} > ${archive}.md5 && \
+ rsync -a ${archive}.md5 rsync://128.238.56.50/upload/${DATE}/${upload_filename}.md5 && \
+ echo SUCCESS
+ fi
;;
esac
}