Repository: incubator-zeppelin Updated Branches: refs/heads/branch-0.5 cd09fbbe3 -> a9a058b2f
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 (cherry picked from commit 9465bc725bc2bd6ea32455d7acafbe2df902c4df) Signed-off-by: Lee moon soo <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/a9a058b2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/a9a058b2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/a9a058b2 Branch: refs/heads/branch-0.5 Commit: a9a058b2f5d0b17e518f866b497b1ce318531d9b Parents: cd09fbb 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:42 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/a9a058b2/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}
