* gcc_release (snapshot_print): Replace md5 checksum by sha256.
authorGerald Pfeifer <gerald@pfeifer.com>
Fri, 3 Mar 2017 14:12:04 +0000 (14:12 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Fri, 3 Mar 2017 14:12:04 +0000 (14:12 +0000)
From-SVN: r245875

maintainer-scripts/ChangeLog
maintainer-scripts/gcc_release

index 4a98deb..9d63b48 100644 (file)
@@ -1,3 +1,7 @@
+2017-03-03  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * gcc_release (snapshot_print): Replace md5 checksum by sha256.
+
 2017-02-28  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * update_web_docs_svn: Remove a reference to GCC 3.1.  Describe
index 639b255..bd31171 100755 (executable)
@@ -356,7 +356,7 @@ upload_files() {
 # Print description if snapshot exists.
 snapshot_print() {
   if [ -e ${RELEASE}/$1 ]; then
-    hash=`openssl  md5  ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'`
+    hash=`openssl  sha256  ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'`
     hash2=`openssl sha1 ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'`
 
     printf " %-37s%s\n\n  %s\n  %s\n\n" "$1" "$2" "$hash" "$hash2" \