From f7ae1d4a18db42c116e30dd29b3ae0f1a20c99d0 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Thu, 17 Sep 2020 09:44:52 -0400 Subject: Bug 567074: checksum files in place Otherwise you get the full path name in the checksum file. Change-Id: I7a5cb3dbd2902aff401d9f04213eef3c5cd01a38 --- .../tools/macosx-notarization-single.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh index 7958f8fb..10a3b118 100755 --- a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh +++ b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh @@ -60,10 +60,15 @@ done rm "${DMG}" curl -JO http://172.30.206.146:8383/macos-notarization-service/${UUID}/download cp -vf "${DMG}" "${DMG_FILE}" -md5sum "${DMG_FILE}" >"${DMG_FILE}".md5 -sha1sum "${DMG_FILE}" >"${DMG_FILE}".sha1 -sha512sum -b "${DMG_FILE}" >"${DMG_FILE}".sha512 -rm "${DMG_FILE}"-tonotarize -rm "${DMG_FILE}"-tonotarize.md5 -rm "${DMG_FILE}"-tonotarize.sha1 -rm "${DMG_FILE}"-tonotarize.sha512 + +# Generate the checksums in the directory that the files are in +d=$(dirname ${DMG_FILE}) +b=$(basename ${DMG_FILE}) +cd "$d" +md5sum "${b}" >"${b}".md5 +sha1sum "${b}" >"${b}".sha1 +sha512sum -b "${b}" >"${b}".sha512 +rm "${b}"-tonotarize +rm "${b}"-tonotarize.md5 +rm "${b}"-tonotarize.sha1 +rm "${b}"-tonotarize.sha512 -- cgit v1.2.1