From 9dc9d0394d57100b32e45788d29ade2e139b80f7 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 3 Nov 2017 10:06:20 -0700 Subject: [PATCH] HBASE-19152 Update refguide 'how to build an RC' and the make_rc.sh script; AMENDMENT adding generation of hashes --- dev-support/make_rc.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-support/make_rc.sh b/dev-support/make_rc.sh index 83b5821ca1f..19f906f282c 100755 --- a/dev-support/make_rc.sh +++ b/dev-support/make_rc.sh @@ -104,11 +104,13 @@ build_bin MAVEN_OPTS="${mvnopts}" ${mvn} deploy -DskipTests -Papache-release -Prelease \ -Dmaven.repo.local=${output_dir}/repository -echo "DONE" +# Do sha1 and md5 +cd ${output_dir} +for i in *.tar.gz; do echo $i; gpg --print-md SHA512 $i > $i.sha ; done +for i in *.tar.gz; do echo $i; gpg --print-md MD5 $i > $i.md5 ; done + echo "Check the content of ${output_dir}. If good, sign and push to dist.apache.org" echo " cd ${output_dir}" -echo ' for i in *.tar.gz; do echo $i; gpg --print-md SHA512 $i > $i.sha ; done' -echo ' for i in *.tar.gz; do echo $i; gpg --print-md MD5 $i > $i.md5 ; done' echo ' for i in *.tar.gz; do echo $i; gpg --armor --output $i.asc --detach-sig $i ; done' echo ' rsync -av ${output_dir}/*.gz ${output_dir}/*.md5 ${output_dir}/*.sha ${output_dir}/*.asc ${APACHE_HBASE_DIST_DEV_DIR}/${hbase_name}/' echo "Check the content deployed to maven. If good, close the repo and record links of temporary staging repo"