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 arlo.cworth.org (Postfix) with ESMTP id 697416DE0B29
\r
6 for <notmuch@notmuchmail.org>; Wed, 26 Aug 2015 12:12:11 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.259 tagged_above=-999 required=5 tests=[AWL=0.799,
\r
12 RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]
\r
14 Received: from arlo.cworth.org ([127.0.0.1])
\r
15 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id PQVtxiVwKLl8 for <notmuch@notmuchmail.org>;
\r
17 Wed, 26 Aug 2015 12:12:08 -0700 (PDT)
\r
18 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
19 by arlo.cworth.org (Postfix) with ESMTP id 925016DE0350
\r
20 for <notmuch@notmuchmail.org>; Wed, 26 Aug 2015 12:12:08 -0700 (PDT)
\r
21 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
22 id C46101000E6; Wed, 26 Aug 2015 22:10:37 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: notmuch@notmuchmail.org
\r
25 Subject: [PATCH v2] devel/release-checks: added checking of copyright year in
\r
27 Date: Wed, 26 Aug 2015 22:10:36 +0300
\r
28 Message-Id: <1440616236-17866-1-git-send-email-tomi.ollila@iki.fi>
\r
29 X-Mailer: git-send-email 2.0.0
\r
30 Cc: tomi.ollila@iki.fi
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.18
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Wed, 26 Aug 2015 19:12:11 -0000
\r
45 Check that copyright year will be current year in generated documentation.
\r
47 Checking is done my matching that copyright line contains current year
\r
48 as a substring which is good enough "approximation" in this context.
\r
51 v2 of id:1438511187-11321-1-git-send-email-tomi.ollila@iki.fi, perhaps
\r
52 addressing comments in id:87r3niwan6.fsf@maritornes.cs.unb.ca
\r
54 devel/release-checks.sh | 15 +++++++++++++++
\r
55 1 file changed, 15 insertions(+)
\r
57 diff --git a/devel/release-checks.sh b/devel/release-checks.sh
\r
58 index 8604a9f7d10b..5802942aa975 100755
\r
59 --- a/devel/release-checks.sh
\r
60 +++ b/devel/release-checks.sh
\r
61 @@ -175,6 +175,21 @@ case $news_date in
\r
62 append_emsg "Date '$news_date' in NEWS file is not in format (yyyy-mm-dd)"
\r
65 +year=`exec date +%Y`
\r
66 +echo -n "Checking that copyright in documentation contains $year... "
\r
67 +# Read the value of variable `copyright' defined in 'doc/conf.py'.
\r
68 +# As __file__ is not defined when python command is given from command line,
\r
69 +# it is defined before contents of 'doc/conf.py' (which dereferences __file__)
\r
71 +copyrightline=`exec python -c "with open('doc/conf.py') as cf: __file__ = ''; exec(cf.read()); print(copyright)"`
\r
72 +case $copyrightline in
\r
77 + append_emsg "The copyright in doc/conf.py line '$copyrightline' does not contain '$year'"
\r