Re: notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / db / 12f04e80f68efdafaa18f2cbb6093f79242e92
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
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.259\r
10 X-Spam-Level: \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
13  autolearn=disabled\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
26  documentation\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
33 Precedence: list\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
44 \r
45 Check that copyright year will be current year in generated documentation.\r
46 \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
49 ---\r
50 \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
53 \r
54  devel/release-checks.sh | 15 +++++++++++++++\r
55  1 file changed, 15 insertions(+)\r
56 \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
63  esac\r
64  \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
70 +# is executed.\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
73 +       *$year*)\r
74 +               echo Yes. ;;\r
75 +       *)\r
76 +               echo No.\r
77 +               append_emsg "The copyright in doc/conf.py line '$copyrightline' does not contain '$year'"\r
78 +esac\r
79 +\r
80  if [ -n "$emsgs" ]\r
81  then\r
82         echo\r
83 -- \r
84 2.0.0\r
85 \r