From 53257825a064500a9797135bdd2781e652e56cc7 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 24 Oct 2007 23:48:11 +0000 Subject: added md5 files for each file uploaded svn path=/trunk/; revision=8877 --- scripts/auto-build/pd-extended-auto-builder.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'scripts') 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 } -- cgit v1.2.1