You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2018/09/10 21:19:49 UTC

svn commit: r1840497 - /apr/site/trunk/tools/release.sh

Author: wrowe
Date: Mon Sep 10 21:19:48 2018
New Revision: 1840497

URL: http://svn.apache.org/viewvc?rev=1840497&view=rev
Log:
Refresh script for creating 256/512 bit SHA2

Modified:
    apr/site/trunk/tools/release.sh

Modified: apr/site/trunk/tools/release.sh
URL: http://svn.apache.org/viewvc/apr/site/trunk/tools/release.sh?rev=1840497&r1=1840496&r2=1840497&view=diff
==============================================================================
--- apr/site/trunk/tools/release.sh (original)
+++ apr/site/trunk/tools/release.sh Mon Sep 10 21:19:48 2018
@@ -157,16 +157,17 @@ sha1="`which sha1 2> /dev/null | head -1
 
 set -- ${dirname}.tar.gz ${dirname}.tar.bz2 ${dirname}-win32-src.zip
 # if found we use openssl for generating the checksums
-# and convert the results into machine-readable format.
 if test -x "${openssl}"; then
   for file; do
     if test -f "${file}"; then
       echo "openssl: creating md5 checksum file for ${file} ..."
-      ${openssl} md5 ${file} |\
-          sed -e 's#^MD5(\(.*\))= \([0-9a-f]*\)$#\2 *\1#' > ${file}.md5
+      ${openssl} md5 -r ${file} > ${file}.md5
       echo "openssl: creating sha1 checksum file for ${file} ..."
-      ${openssl} sha1 ${file} |\
-          sed -e 's#^SHA1(\(.*\))= \([0-9a-f]*\)$#\2 *\1#' > ${file}.sha1
+      ${openssl} sha1 -r ${file} > ${file}.sha1
+      echo "openssl: creating sha256 checksum file for ${file} ..."
+      ${openssl} sha256 -r ${file} > ${file}.sha256
+      echo "openssl: creating sha512 checksum file for ${file} ..."
+      ${openssl} sha512 -r ${file} > ${file}.sha512
     fi
   done
 # no openssl found - check if we have gpg