Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 059B5431FAF for ; Wed, 30 Jan 2013 07:01:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pCKEsC3gsAwP for ; Wed, 30 Jan 2013 07:01:49 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 07163431FAE for ; Wed, 30 Jan 2013 07:01:48 -0800 (PST) Received: by guru.guru-group.fi (Postfix, from userid 501) id 23C4710009D; Wed, 30 Jan 2013 17:01:37 +0200 (EET) From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH 1/1] devel/release-checks.sh: added check that 1st NEWS header is tidy Date: Wed, 30 Jan 2013 17:01:35 +0200 Message-Id: <1359558095-22923-1-git-send-email-tomi.ollila@iki.fi> X-Mailer: git-send-email 1.8.0 Cc: tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 15:01:50 -0000 Check that the underlining '===...' for first (header) line in NEWS file is of the same length as the header text and it is all '=':s. --- devel/release-checks.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/devel/release-checks.sh b/devel/release-checks.sh index d2bbc6a..c13758a 100755 --- a/devel/release-checks.sh +++ b/devel/release-checks.sh @@ -104,6 +104,20 @@ else append_emsg "Version '$py_version' is not '$VERSION' in $PV_FILE" fi +echo -n "Checking that NEWS header is tidy... " +if [ "`exec sed 's/./=/g; 1q' NEWS`" = "`exec sed '1d; 2q' NEWS`" ] +then + echo Yes. +else + echo No. + if [ "`exec sed '1d; s/=//g; 2q' NEWS`" != '' ] + then + append_emsg "Line 2 in NEWS file is not all '=':s" + else + append_emsg "Line 2 in NEWS file does not have the same length as line 1" + fi +fi + echo -n "Checking that this is Notmuch NEWS... " read news_notmuch news_version news_date < NEWS if [ "$news_notmuch" = "Notmuch" ] -- 1.8.1