You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by si...@apache.org on 2018/08/29 17:38:11 UTC

[bookkeeper] branch branch-4.7 updated: [RELEASE] update release script to generate sha512 instead of sha1

This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch branch-4.7
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/branch-4.7 by this push:
     new a80a06e  [RELEASE] update release script to generate sha512 instead of sha1
a80a06e is described below

commit a80a06e706a77885142fb23dfa94ec9b282783e8
Author: Sijie Guo <si...@apache.org>
AuthorDate: Wed Aug 29 10:37:30 2018 -0700

    [RELEASE] update release script to generate sha512 instead of sha1
    
    *Motivation*
    
    According to [checksums requirements](http://www.apache.org/dev/release-distribution#sigs-and-sums),
    the project should supply a sha256 and/or sha512 checksum file, and should not supply a MD5 and sha1 checksum file.
    
    *Changes*
    
    Update the release script to generate sha512 files
    
    Descriptions of the changes in this PR:
    
    Author: Sijie Guo <si...@apache.org>
    
    Reviewers: Enrico Olivelli <eo...@gmail.com>
    
    This closes #1631 from sijie/sha512_files
    
    (cherry picked from commit 4f70973aef55813ffccb6eb312e3fc6cb089207f)
    Signed-off-by: Sijie Guo <si...@apache.org>
---
 dev/release/004-stage-packages.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dev/release/004-stage-packages.sh b/dev/release/004-stage-packages.sh
index 8926ccf..2394134 100755
--- a/dev/release/004-stage-packages.sh
+++ b/dev/release/004-stage-packages.sh
@@ -52,11 +52,12 @@ cp ${SRC_DIR}/bookkeeper-dist/all/target/bookkeeper-all-${VERSION}-bin.tar.gz
 cp ${SRC_DIR}/bookkeeper-dist/all/target/bookkeeper-all-${VERSION}-bin.tar.gz.asc       ${DEST_DIR}/bookkeeper-all-${VERSION}-bin.tar.gz.asc
 echo "Copied packages."
 
-echo "Generating sha1 files ..."
-sha1sum ${DEST_DIR}/bookkeeper-${VERSION}-src.tar.gz            > ${DEST_DIR}/bookkeeper-${VERSION}-src.tar.gz.sha1
-sha1sum ${DEST_DIR}/bookkeeper-server-${VERSION}-bin.tar.gz     > ${DEST_DIR}/bookkeeper-server-${VERSION}-bin.tar.gz.sha1
-sha1sum ${DEST_DIR}/bookkeeper-all-${VERSION}-bin.tar.gz        > ${DEST_DIR}/bookkeeper-all-${VERSION}-bin.tar.gz.sha1
-echo "Generated sha1 files."
+echo "Generating sha512 files ..."
+cd ${DEST_DIR}
+shasum -a 512 bookkeeper-${VERSION}-src.tar.gz            > bookkeeper-${VERSION}-src.tar.gz.sha512
+shasum -a 512 bookkeeper-server-${VERSION}-bin.tar.gz     > bookkeeper-server-${VERSION}-bin.tar.gz.sha512
+shasum -a 512 bookkeeper-all-${VERSION}-bin.tar.gz        > bookkeeper-all-${VERSION}-bin.tar.gz.sha512
+echo "Generated sha512 files."
 
 cd ${DIST_DEV_DIR}/bookkeeper
 svn add ${RC_DIR}