[PATCH] WIP: remove all non-prefixed-terms (and stemmed versions)
[notmuch-archives.git] / 20 / d98a2d2d4f3578039acc0eb603bc0c008d60ab
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
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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
25         is tidy\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
32 Precedence: list\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
43 \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
46 ---\r
47  devel/release-checks.sh | 14 ++++++++++++++\r
48  1 file changed, 14 insertions(+)\r
49 \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
56  fi\r
57  \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
60 +then\r
61 +       echo Yes.\r
62 +else\r
63 +       echo No.\r
64 +       if [ "`exec sed '1d; s/=//g; 2q' NEWS`" != '' ]\r
65 +       then\r
66 +               append_emsg "Line 2 in NEWS file is not all '=':s"\r
67 +       else\r
68 +               append_emsg "Line 2 in NEWS file does not have the same length as line 1"\r
69 +       fi\r
70 +fi\r
71 +\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
75 -- \r
76 1.8.1\r
77 \r