]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc_release (snapshot_print): Include md5 hash for every tarball in the README file...
authorGerald Pfeifer <gerald@pfeifer.com>
Sat, 14 Aug 2010 21:42:16 +0000 (21:42 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sat, 14 Aug 2010 21:42:16 +0000 (21:42 +0000)
* gcc_release (snapshot_print): Include md5 hash for every tarball
in the README file and notification mail.

From-SVN: r163251

maintainer-scripts/ChangeLog
maintainer-scripts/gcc_release

index 89d8a6f5997ba10ba6eeb20656dac2c00c9adaf1..3a352faf2cf5e34ffd39b7852e9d54549cb9860a 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * gcc_release (snapshot_print): Include md5 hash for every tarball
+       in the README file and notification mail.
+
 2010-08-01  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * update_web_docs_libstdcxx_svn: Do not compress generated .html
index 6ff6b2a301b26e3b1f5616efbdaa941207413f7a..7ef0e5b825e363cb0bce137643a9f2ae18908eaf 100755 (executable)
@@ -386,7 +386,10 @@ upload_files() {
 # Print description if snapshot exists.
 snapshot_print() {
   if [ -e ${RELEASE}/$1 ]; then
-     printf "%-38s%s\n\n" "$1" "$2" >> ${SNAPSHOT_README}
+     hash=`openssl md5 ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'`
+
+     printf "%-38s%s\n\n  %s\n\n" "$1" "$2" "$hash" >> ${SNAPSHOT_README}
+
      echo "  <tr><td><a href=\"$1\">$1</a></td>" >> ${SNAPSHOT_INDEX}
      echo "      <td>$2</td></tr>" >> ${SNAPSHOT_INDEX}
   fi