Repository: calcite Updated Branches: refs/heads/master b39a5c762 -> f21719623
Generate sha256 checksums for releases Project: http://git-wip-us.apache.org/repos/asf/calcite/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/f2171962 Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/f2171962 Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/f2171962 Branch: refs/heads/master Commit: f217196239d297a862b9c2bbf13d6469978a52e4 Parents: b39a5c7 Author: Jesus Camacho Rodriguez <[email protected]> Authored: Sat Mar 17 13:04:32 2018 -0700 Committer: Jesus Camacho Rodriguez <[email protected]> Committed: Sat Mar 17 13:04:32 2018 -0700 ---------------------------------------------------------------------- pom.xml | 1 - site/_docs/howto.md | 36 +++++++++++------------------------- 2 files changed, 11 insertions(+), 26 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite/blob/f2171962/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 956b677..6860951 100644 --- a/pom.xml +++ b/pom.xml @@ -973,7 +973,6 @@ limitations under the License. </executions> <configuration> <algorithms> - <algorithm>MD5</algorithm> <algorithm>SHA-256</algorithm> </algorithms> <failOnError>false</failOnError> http://git-wip-us.apache.org/repos/asf/calcite/blob/f2171962/site/_docs/howto.md ---------------------------------------------------------------------- diff --git a/site/_docs/howto.md b/site/_docs/howto.md index f08d2c0..17a1cbc 100644 --- a/site/_docs/howto.md +++ b/site/_docs/howto.md @@ -578,14 +578,12 @@ Check the artifacts. Note that when performing the dry run `SNAPSHOT` will appear in any file or directory names given below. The version will be automatically changed when performing the release for real. -* In the `target` directory should be these 8 files, among others: +* In the `target` directory should be these 6 files, among others: * apache-calcite-X.Y.Z-src.tar.gz * apache-calcite-X.Y.Z-src.tar.gz.asc - * apache-calcite-X.Y.Z-src.tar.gz.md5 * apache-calcite-X.Y.Z-src.tar.gz.sha256 * apache-calcite-X.Y.Z-src.zip * apache-calcite-X.Y.Z-src.zip.asc - * apache-calcite-X.Y.Z-src.zip.md5 * apache-calcite-X.Y.Z-src.zip.sha256 * Note that the file names start `apache-calcite-`. * In the two source distros `.tar.gz` and `.zip` (currently there is @@ -677,33 +675,23 @@ gpg --recv-keys key # Check keys curl -O https://dist.apache.org/repos/dist/release/calcite/KEYS -# Sign/check md5 and sha1 hashes -# (Assumes your O/S has 'md5' and 'sha1' commands.) +# Sign/check sha256 hashes +# (Assumes your O/S has a 'shasum' command.) function checkHash() { cd "$1" for i in *.{zip,pom,gz}; do if [ ! -f $i ]; then continue fi - if [ -f $i.md5 ]; then - if [ "$(cat $i.md5)" = "$(md5 -q $i)" ]; then - echo $i.md5 present and correct + if [ -f $i.sha256 ]; then + if [ "$(cat $i.sha256)" = "$(shasum -a 256 $i)" ]; then + echo $i.sha256 present and correct else - echo $i.md5 does not match + echo $i.sha256 does not match fi else - md5 -q $i > $i.md5 - echo $i.md5 created - fi - if [ -f $i.sha1 ]; then - if [ "$(cat $i.sha1)" = "$(sha1 -q $i)" ]; then - echo $i.sha1 present and correct - else - echo $i.sha1 does not match - fi - else - sha1 -q $i > $i.sha1 - echo $i.sha1 created + shasum -a 256 $i > $i.sha256 + echo $i.sha256 created fi done } @@ -735,10 +723,8 @@ The artifacts to be voted on are located here: https://dist.apache.org/repos/dist/dev/calcite/apache-calcite-X.Y.Z-rcN/ The hashes of the artifacts are as follows: -src.tar.gz.md5 XXXX -src.tar.gz.sha1 XXXX -src.zip.md5 XXXX -src.zip.sha1 XXXX +src.tar.gz.sha256 XXXX +src.zip.sha256 XXXX A staged Maven repository is available for review at: https://repository.apache.org/content/repositories/orgapachecalcite-NNNN
