From patchwork Sat Aug 14 21:46:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 61739 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 4CDACB70B4 for ; Sun, 15 Aug 2010 07:46:42 +1000 (EST) Received: (qmail 27686 invoked by alias); 14 Aug 2010 21:46:40 -0000 Received: (qmail 27677 invoked by uid 22791); 14 Aug 2010 21:46:40 -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; Sat, 14 Aug 2010 21:46:35 +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 52ADE1E05D for ; Sat, 14 Aug 2010 23:46:31 +0200 (CEST) Date: Sat, 14 Aug 2010 23:46:35 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: maintainer-scripts/gcc_release: include md5 hashes 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 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 * 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 " $1" >> ${SNAPSHOT_INDEX} echo " $2" >> ${SNAPSHOT_INDEX} fi