* 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 4a98deb26381a886b4e9cc2d546869e64a92ee94..9d63b485b16efe641b5ecf4f7890da69c15ec91c 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 639b2559aec327740458bb099e5af6755781498f..bd31171734f99d8175977ead32e4a71bf1be2d0a 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" \