[PATCH 2/3] Makefile.local: make IS_GIT simply expanded
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 25 May 2016 21:04:31 +0000 (00:04 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:53 +0000 (16:21 -0700)
a8/a04308e1d9e8b890bd58762be2858320c43ad7 [new file with mode: 0644]

diff --git a/a8/a04308e1d9e8b890bd58762be2858320c43ad7 b/a8/a04308e1d9e8b890bd58762be2858320c43ad7
new file mode 100644 (file)
index 0000000..7f3ee74
--- /dev/null
@@ -0,0 +1,67 @@
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 90F686DE02CC\r
+ for <notmuch@notmuchmail.org>; Wed, 25 May 2016 14:04:57 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.258\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.258 tagged_above=-999 required=5 tests=[AWL=0.267, \r
+ HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id s9c3REsJWOeP for <notmuch@notmuchmail.org>;\r
+ Wed, 25 May 2016 14:04:50 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id D3DE76DE01F7\r
+ for <notmuch@notmuchmail.org>; Wed, 25 May 2016 14:04:40 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 2623C1000DF; Thu, 26 May 2016 00:04:35 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Cc: tomi.ollila@iki.fi\r
+Subject: [PATCH 2/3] Makefile.local: make IS_GIT simply expanded\r
+Date: Thu, 26 May 2016 00:04:31 +0300\r
+Message-Id: <1464210272-26281-2-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.8.2\r
+In-Reply-To: <1464210272-26281-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1464210272-26281-1-git-send-email-tomi.ollila@iki.fi>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 25 May 2016 21:04:57 -0000\r
+\r
+By using ':=' while setting IS_GIT it is expanded to 'yes' or 'no' at\r
+that point (and not every time when $(IS_GIT) is referenced).\r
+---\r
+ Makefile.local | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/Makefile.local b/Makefile.local\r
+index a1e9578441a4..ee3cf18f5757 100644\r
+--- a/Makefile.local\r
++++ b/Makefile.local\r
+@@ -10,7 +10,7 @@\r
+ # repository), we let git append identification of the actual commit.\r
+ PACKAGE=notmuch\r
\r
+-IS_GIT=$(shell if [ -d ${srcdir}/.git -o -f ${srcdir}/.git ] ; then echo yes ; else echo no; fi)\r
++IS_GIT:=$(shell if [ -d ${srcdir}/.git -o -f ${srcdir}/.git ] ; then echo yes ; else echo no; fi)\r
\r
+ ifeq ($(IS_GIT),yes)\r
+ DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)\r
+-- \r
+2.8.2\r
+\r