Repository: incubator-zeppelin
Updated Branches:
  refs/heads/master ed0cdf773 -> 9465bc725


ZEPPELIN-174 Fix sha checksum in release package

https://issues.apache.org/jira/browse/ZEPPELIN-174

* [x] change suffix to sha512
* [x] change to sha512sum command verifiable format

Author: Lee moon soo <[email protected]>

Closes #161 from Leemoonsoo/ZEPPELIN-174 and squashes the following commits:

7ba4577 [Lee moon soo] Create sha512sum command verifiable format checksum
fee7757 [Lee moon soo] sha512 suffix for sha checksum


Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/9465bc72
Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/9465bc72
Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/9465bc72

Branch: refs/heads/master
Commit: 9465bc725bc2bd6ea32455d7acafbe2df902c4df
Parents: ed0cdf7
Author: Lee moon soo <[email protected]>
Authored: Wed Jul 22 17:34:49 2015 +0900
Committer: Lee moon soo <[email protected]>
Committed: Mon Jul 27 11:19:18 2015 +0900

----------------------------------------------------------------------
 dev/create_release.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/9465bc72/dev/create_release.sh
----------------------------------------------------------------------
diff --git a/dev/create_release.sh b/dev/create_release.sh
index b7af2e1..1546f8b 100755
--- a/dev/create_release.sh
+++ b/dev/create_release.sh
@@ -32,6 +32,11 @@ if [[ -z "${TAR}" ]]; then
     TAR=/usr/bin/tar
 fi
 
+if [[ -z "${SHASUM}" ]]; then
+    SHASUM="/usr/bin/shasum -a 512"
+fi
+
+
 if [[ -z "${WORKING_DIR}" ]]; then
     WORKING_DIR=/tmp/incubator-zeppelin-release
 fi
@@ -82,7 +87,7 @@ echo "Signing the source package"
 cd ${WORKING_DIR}
 echo $GPG_PASSPHRASE | gpg --passphrase-fd 0 --armor --output 
zeppelin-${RELEASE_NAME}.tgz.asc --detach-sig 
${WORKING_DIR}/zeppelin-${RELEASE_NAME}.tgz
 echo $GPG_PASSPHRASE | gpg --passphrase-fd 0 --print-md MD5 
zeppelin-${RELEASE_NAME}.tgz > ${WORKING_DIR}/zeppelin-${RELEASE_NAME}.tgz.md5
-echo $GPG_PASSPHRASE | gpg --passphrase-fd 0 --print-md SHA512 
zeppelin-${RELEASE_NAME}.tgz > ${WORKING_DIR}/zeppelin-${RELEASE_NAME}.tgz.sha
+${SHASUM} zeppelin-${RELEASE_NAME}.tgz > 
${WORKING_DIR}/zeppelin-${RELEASE_NAME}.tgz.sha512
 
 
 function make_binary_release() {
@@ -107,12 +112,12 @@ function make_binary_release() {
     # sign bin package
     echo $GPG_PASSPHRASE | gpg --passphrase-fd 0 --armor --output 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.asc --detach-sig 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz
     echo $GPG_PASSPHRASE | gpg --passphrase-fd 0 --print-md MD5 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz > 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.md5
-    echo $GPG_PASSPHRASE | gpg --passphrase-fd 0 --print-md SHA512 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz > 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.sha
+    ${SHASUM} zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz > 
zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.sha512
 
     mv zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz ${WORKING_DIR}/
     mv zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.asc ${WORKING_DIR}/
     mv zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.md5 ${WORKING_DIR}/
-    mv zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.sha ${WORKING_DIR}/
+    mv zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}.tgz.sha512 
${WORKING_DIR}/
 
     # clean up build dir
     rm -rf ${WORKING_DIR}/zeppelin-${RELEASE_NAME}-bin-${BIN_RELEASE_NAME}

Reply via email to