From 52965ca61287a3a6d6f6252f5b6b65514f67618b Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 23 Aug 2010 18:52:06 +0000 Subject: [PATCH] gcc_release (snapshot_print): Also include an sha1 hash for every tarball. * gcc_release (snapshot_print): Also include an sha1 hash for every tarball. Slightly tweak indentation. From-SVN: r163487 --- maintainer-scripts/ChangeLog | 5 +++++ maintainer-scripts/gcc_release | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index cf2d5e184a1c..2be470448840 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-08-23 Gerald Pfeifer + + * gcc_release (snapshot_print): Also include an sha1 hash for + every tarball. Slightly tweak indentation. + 2010-08-15 Gerald Pfeifer * gcc_release (CVSROOT): Remove all occurrences. diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 769f971ff7dd..9389b83b6d29 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -386,9 +386,11 @@ 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 md5 ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'` + hash2=`openssl sha1 ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'` - printf "%-38s%s\n\n %s\n\n" "$1" "$2" "$hash" >> ${SNAPSHOT_README} + printf " %-37s%s\n\n %s\n %s\n\n" "$1" "$2" "$hash" "$hash2" \ + >> ${SNAPSHOT_README} echo " $1" >> ${SNAPSHOT_INDEX} echo " $2" >> ${SNAPSHOT_INDEX} -- 2.39.5