From patchwork Mon Aug 23 18:55:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 62505 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9C444B6F0D for ; Tue, 24 Aug 2010 04:55:17 +1000 (EST) Received: (qmail 828 invoked by alias); 23 Aug 2010 18:55:15 -0000 Received: (qmail 819 invoked by uid 22791); 23 Aug 2010 18:55:15 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from vexpert.dbai.tuwien.ac.at (HELO vexpert.dbai.tuwien.ac.at) (128.131.111.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Aug 2010 18:55:09 +0000 Received: from acrux.dbai.tuwien.ac.at (acrux.dbai.tuwien.ac.at [128.131.111.60]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id 9DD1F1E06D for ; Mon, 23 Aug 2010 20:55:05 +0200 (CEST) Date: Mon, 23 Aug 2010 20:55:08 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: maintainer-scripts/gcc_release: add sha1 hash, formatting Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org In case you wanted to know what creates those new snapshot announcements with more hashes, this is how. Installed and also put in place on gcc.gnu.org where it has created the last couple of snapshots. Gerald 2010-08-23 Gerald Pfeifer * gcc_release (snapshot_print): Also include an sha1 hash for every tarball. Slightly tweak indentation. Index: gcc_release =================================================================== --- gcc_release (revision 163482) +++ gcc_release (working copy) @@ -386,9 +386,11 @@ # 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}