summaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-23 18:52:06 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-23 18:52:06 +0000
commit86b9346b3a0be8501129c02f4c4a38778f953843 (patch)
tree84cf1b93ca08352b3f659329a544e21ff53e14b0 /maintainer-scripts
parentbd62669e2161ce0780c81e756a5b3b23d8b631a2 (diff)
downloadgcc-86b9346b3a0be8501129c02f4c4a38778f953843.tar.gz
* gcc_release (snapshot_print): Also include an sha1 hash for
every tarball. Slightly tweak indentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163487 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog5
-rwxr-xr-xmaintainer-scripts/gcc_release6
2 files changed, 9 insertions, 2 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index cf2d5e184a1..2be47044884 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-23 Gerald Pfeifer <gerald@pfeifer.com>
+
+ * gcc_release (snapshot_print): Also include an sha1 hash for
+ every tarball. Slightly tweak indentation.
+
2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
* gcc_release (CVSROOT): Remove all occurrences.
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 769f971ff7d..9389b83b6d2 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}