You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2017/10/17 14:06:57 UTC

svn commit: r1812408 - /openoffice/devtools/release-scripts/hash-sign.sh

Author: jim
Date: Tue Oct 17 14:06:56 2017
New Revision: 1812408

URL: http://svn.apache.org/viewvc?rev=1812408&view=rev
Log:
Update script for correct format. Only w/ openssl right now.
All others will need to double check until I get around to
fixing them as well.

Modified:
    openoffice/devtools/release-scripts/hash-sign.sh

Modified: openoffice/devtools/release-scripts/hash-sign.sh
URL: http://svn.apache.org/viewvc/openoffice/devtools/release-scripts/hash-sign.sh?rev=1812408&r1=1812407&r2=1812408&view=diff
==============================================================================
--- openoffice/devtools/release-scripts/hash-sign.sh (original)
+++ openoffice/devtools/release-scripts/hash-sign.sh Tue Oct 17 14:06:56 2017
@@ -44,10 +44,10 @@ if test -x "${openssl}"; then
     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
+          ${sed} -e 's#^MD5(\(.*/\)*\(.*\))= \([0-9a-f]*\)$#\3 *\2#' > ${file}.md5
       echo "openssl: creating sha256 checksum file for ${file} ..."
       ${openssl} sha256 ${file} |\
-          ${sed} -e 's#^SHA256(\(.*\))= \([0-9a-f]*\)$#\2 *\1#' > ${file}.sha256
+          ${sed} -e 's#^SHA256(\(.*/\)*\(.*\))= \([0-9a-f]*\)$#\3 *\2#' > ${file}.sha256
     fi
   done
 # no openssl found - check if we have gpg2