From: Gerald Pfeifer Date: Sat, 14 Aug 2010 21:42:16 +0000 (+0000) Subject: gcc_release (snapshot_print): Include md5 hash for every tarball in the README file... X-Git-Tag: releases/gcc-4.6.0~5003 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c21b3cacdbaabfa89f3fbb1bec0b6bad636dd36;p=thirdparty%2Fgcc.git gcc_release (snapshot_print): Include md5 hash for every tarball in the README file and notification mail. * gcc_release (snapshot_print): Include md5 hash for every tarball in the README file and notification mail. From-SVN: r163251 --- diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index 89d8a6f5997b..3a352faf2cf5 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-08-14 Gerald Pfeifer + + * gcc_release (snapshot_print): Include md5 hash for every tarball + in the README file and notification mail. + 2010-08-01 Gerald Pfeifer * update_web_docs_libstdcxx_svn: Do not compress generated .html diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 6ff6b2a301b2..7ef0e5b825e3 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -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 " $1" >> ${SNAPSHOT_INDEX} echo " $2" >> ${SNAPSHOT_INDEX} fi