aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-24 23:48:11 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-24 23:48:11 +0000
commit53257825a064500a9797135bdd2781e652e56cc7 (patch)
treecf9d5b690d342b40246e775c92139697fd0a353b /scripts
parent10e68fb2fb3e08dc12fc9fda69ddcce5424bb654 (diff)
added md5 files for each file uploaded
svn path=/trunk/; revision=8877
Diffstat (limited to 'scripts')
-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
}