Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 6a / bedeb004da67e700018a0f35723fb302b72138
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 C9FAD6DE0222\r
6  for <notmuch@notmuchmail.org>; Wed, 25 May 2016 14:04:49 -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.258\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.258 tagged_above=-999 required=5 tests=[AWL=0.267, \r
12  HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-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 3JO2wJfc0fbx for <notmuch@notmuchmail.org>;\r
17  Wed, 25 May 2016 14:04:41 -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 D4A216DE0217\r
20  for <notmuch@notmuchmail.org>; Wed, 25 May 2016 14:04:40 -0700 (PDT)\r
21 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
22  id 899D71000E0; Thu, 26 May 2016 00:04:35 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: notmuch@notmuchmail.org\r
25 Cc: tomi.ollila@iki.fi\r
26 Subject: [PATCH 3/3] Makefile.local: use $(wildcard) to check existence of\r
27  ${srcdir}/.git\r
28 Date: Thu, 26 May 2016 00:04:32 +0300\r
29 Message-Id: <1464210272-26281-3-git-send-email-tomi.ollila@iki.fi>\r
30 X-Mailer: git-send-email 2.8.2\r
31 In-Reply-To: <1464210272-26281-1-git-send-email-tomi.ollila@iki.fi>\r
32 References: <1464210272-26281-1-git-send-email-tomi.ollila@iki.fi>\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.20\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37  <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
39  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Wed, 25 May 2016 21:04:49 -0000\r
46 \r
47 With this GNU Make construct one shell invocation can be skipped\r
48 and code looks shorter (narrower). This would now match to .git\r
49 being other file type than regular file or directory (or symlink\r
50 to those), but that is not a use case anyone should expect users\r
51 to do.\r
52 ---\r
53  Makefile.local | 2 +-\r
54  1 file changed, 1 insertion(+), 1 deletion(-)\r
55 \r
56 diff --git a/Makefile.local b/Makefile.local\r
57 index ee3cf18f5757..045549b54442 100644\r
58 --- a/Makefile.local\r
59 +++ b/Makefile.local\r
60 @@ -10,7 +10,7 @@\r
61  # repository), we let git append identification of the actual commit.\r
62  PACKAGE=notmuch\r
63  \r
64 -IS_GIT:=$(shell if [ -d ${srcdir}/.git -o -f ${srcdir}/.git ] ; then echo yes ; else echo no; fi)\r
65 +IS_GIT:=$(if $(wildcard ${srcdir}/.git),yes,no)\r
66  \r
67  ifeq ($(IS_GIT),yes)\r
68  DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)\r
69 -- \r
70 2.8.2\r
71 \r