Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2020-09-17 13:44:52 +0000
committerJonah Graham2020-10-15 18:11:25 +0000
commit74fbeca522093aa83a1a7310cf3fc7be0c5f5d1f (patch)
treef8e92274c5175b3f7c7cf4d0e9ec121ee52e96de
parentf512ff46bc934caa0a45f56adc6b8979e93870f6 (diff)
downloadorg.eclipse.epp.packages-74fbeca522093aa83a1a7310cf3fc7be0c5f5d1f.tar.gz
org.eclipse.epp.packages-74fbeca522093aa83a1a7310cf3fc7be0c5f5d1f.tar.xz
org.eclipse.epp.packages-74fbeca522093aa83a1a7310cf3fc7be0c5f5d1f.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