diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2010-08-23 18:52:06 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2010-08-23 18:52:06 +0000 |
commit | 52965ca61287a3a6d6f6252f5b6b65514f67618b (patch) | |
tree | 84cf1b93ca08352b3f659329a544e21ff53e14b0 /maintainer-scripts/gcc_release | |
parent | 756f50ce3852f45ea8eb04797de67087936bdd43 (diff) | |
download | gcc-52965ca61287a3a6d6f6252f5b6b65514f67618b.zip gcc-52965ca61287a3a6d6f6252f5b6b65514f67618b.tar.gz gcc-52965ca61287a3a6d6f6252f5b6b65514f67618b.tar.bz2 |
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
Diffstat (limited to 'maintainer-scripts/gcc_release')
-rwxr-xr-x | maintainer-scripts/gcc_release | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 769f971f..9389b83 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 " <tr><td><a href=\"$1\">$1</a></td>" >> ${SNAPSHOT_INDEX} echo " <td>$2</td></tr>" >> ${SNAPSHOT_INDEX} |