Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2020-09-17 13:44:52 +0000
committerJonah Graham2020-09-17 13:56:52 +0000
commitf7ae1d4a18db42c116e30dd29b3ae0f1a20c99d0 (patch)
tree42b7c94defacf974abf4864432048ce6b16b7410
parent7f0e9057e404361563c819e8c389860581324aeb (diff)
downloadorg.eclipse.epp.packages-f7ae1d4a18db42c116e30dd29b3ae0f1a20c99d0.tar.gz
org.eclipse.epp.packages-f7ae1d4a18db42c116e30dd29b3ae0f1a20c99d0.tar.xz
org.eclipse.epp.packages-f7ae1d4a18db42c116e30dd29b3ae0f1a20c99d0.zip
Bug 567074: checksum files in place
Otherwise you get the full path name in the checksum file. Change-Id: I7a5cb3dbd2902aff401d9f04213eef3c5cd01a38
-rwxr-xr-xreleng/org.eclipse.epp.config/tools/macosx-notarization-single.sh19
1 files 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

Back to the top