You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2017/09/15 15:46:16 UTC

activemq-artemis git commit: NO-JIRA: tweaks for the release download helper script - Verify the downloaded tar/zip files using their matching signature. - Generate SHA512 checksum files for them. - Update downloaded MD5 files to allow for simplified CLI

Repository: activemq-artemis
Updated Branches:
  refs/heads/master 35bc64a0e -> b7b2960e1


NO-JIRA: tweaks for the release download helper script
- Verify the downloaded tar/zip files using their matching signature.
- Generate SHA512 checksum files for them.
- Update downloaded MD5 files to allow for simplified CLI tool checks.
- Run CLI tool checks on all the checksum files.


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/b7b2960e
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/b7b2960e
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/b7b2960e

Branch: refs/heads/master
Commit: b7b2960e1f1870246f0c113f56d22cfc0f7a4269
Parents: 35bc64a
Author: Robbie Gemmell <ro...@apache.org>
Authored: Fri Sep 15 16:43:00 2017 +0100
Committer: Robbie Gemmell <ro...@apache.org>
Committed: Fri Sep 15 16:43:00 2017 +0100

----------------------------------------------------------------------
 scripts/download-release.sh | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b7b2960e/scripts/download-release.sh
----------------------------------------------------------------------
diff --git a/scripts/download-release.sh b/scripts/download-release.sh
index 8e038b1..42f02f4 100755
--- a/scripts/download-release.sh
+++ b/scripts/download-release.sh
@@ -50,8 +50,14 @@ doDownload () {
   echo "Downloading $theFile.md5"
   curl $completeURL.md5 > $theFile.md5
 
-  echo "Downloading $theFile.sha1"
-  curl $completeURL.sha1 > $theFile.sha1
+  echo "Verifying signature $theFile.asc"
+  gpg --verify $theFile.asc
+
+  echo "Augmenting $theFile.md5 with filename details"
+  echo "  $theFile" >> $theFile.md5
+
+  echo "Generating SHA512 checksum file $theFile.sha512"
+  sha512sum $theFile > $theFile.sha512
 }
 
 if [ "$#" != 3 ]; then
@@ -73,3 +79,9 @@ doDownload apache-artemis-$release-bin.zip
 doDownload apache-artemis-$release-source-release.tar.gz
 doDownload apache-artemis-$release-source-release.zip
 
+echo "Validating all MD5 checksum files"
+md5sum -c *.md5
+
+echo "Validating all SHA512 checksum files"
+sha512sum -c *.sha512
+