aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts/gcc_release
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@pfeifer.com>2010-08-14 21:42:16 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2010-08-14 21:42:16 +0000
commit0c21b3cacdbaabfa89f3fbb1bec0b6bad636dd36 (patch)
tree349916f9285f7dee7958b020892bbfc1f88ca7a8 /maintainer-scripts/gcc_release
parent73571bf1e205b3428f404297d19b9ad936dc36a1 (diff)
downloadgcc-0c21b3cacdbaabfa89f3fbb1bec0b6bad636dd36.zip
gcc-0c21b3cacdbaabfa89f3fbb1bec0b6bad636dd36.tar.gz
gcc-0c21b3cacdbaabfa89f3fbb1bec0b6bad636dd36.tar.bz2
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
Diffstat (limited to 'maintainer-scripts/gcc_release')
-rwxr-xr-xmaintainer-scripts/gcc_release5
1 files changed, 4 insertions, 1 deletions
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 6ff6b2a..7ef0e5b 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 " <tr><td><a href=\"$1\">$1</a></td>" >> ${SNAPSHOT_INDEX}
echo " <td>$2</td></tr>" >> ${SNAPSHOT_INDEX}
fi