diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-16 02:10:25 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-16 02:10:25 +0000 |
commit | e2bd8a8878b2ca9b889319d2dae3417322718ce7 (patch) | |
tree | 71c47d1be550a5778e4bd9ee1192b0d163b02cde | |
parent | c32e98ca9bdcf7c22e88be9078427795ad58432a (diff) |
make sure the .md5 files have the correct filename inside of them
svn path=/trunk/; revision=16389
-rwxr-xr-x | scripts/auto-build/pd-extended-auto-builder.sh | 4 | ||||
-rwxr-xr-x | scripts/auto-build/pd-extended-source-tarball.sh | 2 |
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 } |