aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-16 02:10:25 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-16 02:10:25 +0000
commite2bd8a8878b2ca9b889319d2dae3417322718ce7 (patch)
tree71c47d1be550a5778e4bd9ee1192b0d163b02cde /scripts/auto-build
parentc32e98ca9bdcf7c22e88be9078427795ad58432a (diff)
make sure the .md5 files have the correct filename inside of them
svn path=/trunk/; revision=16389
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-xscripts/auto-build/pd-extended-auto-builder.sh4
-rwxr-xr-xscripts/auto-build/pd-extended-source-tarball.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh
index 34df82c7..702d9cfe 100755
--- a/scripts/auto-build/pd-extended-auto-builder.sh
+++ b/scripts/auto-build/pd-extended-auto-builder.sh
@@ -105,7 +105,7 @@ upload_build ()
mingw*)
/c/cygwin/bin/sh -c \
"rsync --archive --no-links --copy-links --chmod=a+r ${archive} rsync://${RSYNC_SERVER}/upload/${DATE}/${upload_filename}" && \
- md5sum ${archive} > ${archive}.md5 && \
+ md5sum ${archive} | sed "s|^\([0-9a-f][0-9a-f]* \)/.*/|\1${archive}|" > ${archive}.md5 && \
/c/cygwin/bin/sh -c \
"rsync --archive --no-links --copy-links ${archive}.md5 rsync://${RSYNC_SERVER}/upload/${DATE}/${upload_filename}.md5" && \
echo "successfully uploaded: ${upload_filename}" && \
@@ -113,7 +113,7 @@ upload_build ()
;;
*)
rsync -a --chmod=a+r ${archive} rsync://${RSYNC_SERVER}/upload/${DATE}/${upload_filename} && \
- md5sum ${archive} > ${archive}.md5 && \
+ md5sum ${archive} | sed "s|^\([0-9a-f][0-9a-f]* \)/.*/|\1${archive}|" > ${archive}.md5 && \
rsync -a ${archive}.md5 rsync://${RSYNC_SERVER}/upload/${DATE}/${upload_filename}.md5 && \
echo "successfully uploaded: ${upload_filename}" && \
echo SUCCESS
diff --git a/scripts/auto-build/pd-extended-source-tarball.sh b/scripts/auto-build/pd-extended-source-tarball.sh
index 8bb60c64..bd51fa96 100755
--- a/scripts/auto-build/pd-extended-source-tarball.sh
+++ b/scripts/auto-build/pd-extended-source-tarball.sh
@@ -20,7 +20,7 @@ upload_generated_file()
{
file=$1
rsync_file $file
- md5sum ${file} > ${file}.md5
+ md5sum ${file} | sed "s|^\([0-9a-f][0-9a-f]* \)/.*/|\1|" > ${file}.md5
rsync_file $file.md5
}