public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* maintainer-scripts/gcc_release: include md5 hashes
@ 2010-08-14 21:58 Gerald Pfeifer
  0 siblings, 0 replies; only message in thread
From: Gerald Pfeifer @ 2010-08-14 21:58 UTC (permalink / raw)
  To: gcc-patches

This is the patch I used to generate today's GCC 4.6 snapshot.  I am
not really satisfied with how the output looks and also would like to
include another hash, but it's a first step.

Committed, and also applied to the gccadmin account on gcc.gnu.org.

Gerald

2010-08-14  Gerald Pfeifer  <gerald@pfeifer.com>

	* gcc_release (snapshot_print): Include md5 hash for every
	tarball	in the README file and notification mail.

Index: gcc_release
===================================================================
--- gcc_release	(revision 162804)
+++ gcc_release	(working copy)
@@ -386,7 +386,10 @@
 # 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-14 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-14 21:58 maintainer-scripts/gcc_release: include md5 hashes Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).