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 DFB98431FC0
\r
6 for <notmuch@notmuchmail.org>; Sat, 26 May 2012 08:22:17 -0700 (PDT)
\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 Sd3u7yNkHJKU for <notmuch@notmuchmail.org>;
\r
16 Sat, 26 May 2012 08:22:17 -0700 (PDT)
\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 1A34D431FB6
\r
19 for <notmuch@notmuchmail.org>; Sat, 26 May 2012 08:22:17 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id ACBE2100641; Sat, 26 May 2012 18:22:26 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/2] Makefile.local: added checks for latest NEWS title
\r
25 Date: Sat, 26 May 2012 18:22:24 +0300
\r
26 Message-Id: <1338045745-18409-1-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.7.1
\r
28 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
29 X-BeenThere: notmuch@notmuchmail.org
\r
30 X-Mailman-Version: 2.1.13
\r
32 List-Id: "Use and development of the notmuch mail system."
\r
33 <notmuch.notmuchmail.org>
\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
35 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
37 List-Post: <mailto:notmuch@notmuchmail.org>
\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
41 X-List-Received-Date: Sat, 26 May 2012 15:22:18 -0000
\r
43 Added target `verify-version-news` which checks that the first line
\r
44 in NEWS file has the following properties:
\r
45 First word is 'Notmuch'
\r
46 Second "word" matches the current version
\r
47 Rest of line is in format (201[2-9]-[01][0-9]-[0-3][0-9]
\r
50 Tested by executing the following commands:
\r
51 make verify-version-news
\r
52 make verify-version-news VERSION=0.13
\r
53 make verify-version-news VERSION=0.12
\r
55 Makefile.local | 15 +++++++++++++++
\r
56 1 files changed, 15 insertions(+), 0 deletions(-)
\r
58 diff --git a/Makefile.local b/Makefile.local
\r
59 index 53b4a0d..1b34c00 100644
\r
60 --- a/Makefile.local
\r
61 +++ b/Makefile.local
\r
62 @@ -220,6 +220,21 @@ verify-version-python: verify-version-components
\r
63 echo "Please edit version and $(PV_FILE) to have consistent versions." && false)
\r
66 +.PHONY: verify-version-news
\r
67 +verify-version-news: verify-version-components
\r
68 + @read notmuch version date < NEWS ;\
\r
70 + echo -n "Checking that this is 'Notmuch' NEWS..." ;\
\r
71 + if [ "$$notmuch" = 'Notmuch' ]; then echo 'Good.' ;\
\r
72 + else echo 'No.'; ev=1; fi ;\
\r
73 + echo -n "Checking that NEWS version is $(VERSION)..." ;\
\r
74 + if [ "$$version" = '$(VERSION)' ]; then echo 'Good.' ;\
\r
75 + else echo 'No.'; ev=1; fi ;\
\r
76 + echo -n "Checking that NEWS date is in correct format..." ;\
\r
77 + case $$date in '('201[2-9]-[0-1][0-9]-[0-3][0-9]')') echo 'Good.' ;;\
\r
78 + *) echo 'No.'; ev=1; esac ;\
\r
79 + if [ $$ev -ne 0 ]; then echo "Please edit NEWS file to have Notmuch header line in correct format."; false; fi
\r
81 .PHONY: verify-version-components
\r
82 verify-version-components:
\r
83 @echo -n "Checking that $(VERSION) consists only of digits and periods..."
\r