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

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


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

commit 4f70973aef55813ffccb6eb312e3fc6cb089207f
Author: Sijie Guo <[email protected]>
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 <[email protected]>
    
    Reviewers: Enrico Olivelli <[email protected]>
    
    This closes #1631 from sijie/sha512_files
---
 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}

Reply via email to