1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 059B5431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 30 Jan 2013 07:01:50 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id pCKEsC3gsAwP for <notmuch@notmuchmail.org>;
\r
16 Wed, 30 Jan 2013 07:01:49 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 07163431FAE
\r
19 for <notmuch@notmuchmail.org>; Wed, 30 Jan 2013 07:01:48 -0800 (PST)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id 23C4710009D; Wed, 30 Jan 2013 17:01:37 +0200 (EET)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/1] devel/release-checks.sh: added check that 1st NEWS header
\r
26 Date: Wed, 30 Jan 2013 17:01:35 +0200
\r
27 Message-Id: <1359558095-22923-1-git-send-email-tomi.ollila@iki.fi>
\r
28 X-Mailer: git-send-email 1.8.0
\r
29 Cc: tomi.ollila@iki.fi
\r
30 X-BeenThere: notmuch@notmuchmail.org
\r
31 X-Mailman-Version: 2.1.13
\r
33 List-Id: "Use and development of the notmuch mail system."
\r
34 <notmuch.notmuchmail.org>
\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
36 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
38 List-Post: <mailto:notmuch@notmuchmail.org>
\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
42 X-List-Received-Date: Wed, 30 Jan 2013 15:01:50 -0000
\r
44 Check that the underlining '===...' for first (header) line in NEWS
\r
45 file is of the same length as the header text and it is all '=':s.
\r
47 devel/release-checks.sh | 14 ++++++++++++++
\r
48 1 file changed, 14 insertions(+)
\r
50 diff --git a/devel/release-checks.sh b/devel/release-checks.sh
\r
51 index d2bbc6a..c13758a 100755
\r
52 --- a/devel/release-checks.sh
\r
53 +++ b/devel/release-checks.sh
\r
54 @@ -104,6 +104,20 @@ else
\r
55 append_emsg "Version '$py_version' is not '$VERSION' in $PV_FILE"
\r
58 +echo -n "Checking that NEWS header is tidy... "
\r
59 +if [ "`exec sed 's/./=/g; 1q' NEWS`" = "`exec sed '1d; 2q' NEWS`" ]
\r
64 + if [ "`exec sed '1d; s/=//g; 2q' NEWS`" != '' ]
\r
66 + append_emsg "Line 2 in NEWS file is not all '=':s"
\r
68 + append_emsg "Line 2 in NEWS file does not have the same length as line 1"
\r
72 echo -n "Checking that this is Notmuch NEWS... "
\r
73 read news_notmuch news_version news_date < NEWS
\r
74 if [ "$news_notmuch" = "Notmuch" ]
\r