[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 18 / d004d9c027f3cf2a2cbe870905fd092bf7c9d3
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 5ED43431FC0\r
6         for <notmuch@notmuchmail.org>; Fri, 21 Feb 2014 15:20:51 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 rALMZVP26hcD for <notmuch@notmuchmail.org>;\r
16         Fri, 21 Feb 2014 15:20:46 -0800 (PST)\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 98EAC431FB6\r
19         for <notmuch@notmuchmail.org>; Fri, 21 Feb 2014 15:20:46 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 093FA100063; Sat, 22 Feb 2014 01:20:39 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH 1/3] build: write version.stamp file containing $(VERSION)\r
25         string\r
26 Date: Sat, 22 Feb 2014 01:20:35 +0200\r
27 Message-Id: <1393024837-30394-1-git-send-email-tomi.ollila@iki.fi>\r
28 X-Mailer: git-send-email 1.8.0\r
29 Cc: tomi.ollila@iki.fi\r
30 X-BeenThere: notmuch@notmuchmail.org\r
31 X-Mailman-Version: 2.1.13\r
32 Precedence: list\r
33 List-Id: "Use and development of the notmuch mail system."\r
34         <notmuch.notmuchmail.org>\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
36         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
38 List-Post: <mailto:notmuch@notmuchmail.org>\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
42 X-List-Received-Date: Fri, 21 Feb 2014 23:20:51 -0000\r
43 \r
44 This version file will be as prerequisite to the target files\r
45 that use the version info for some purpose, like printing\r
46 it for the user to examine. The contents of the version.stamp\r
47 file is seldom read by the build system itself as the $(VERSION)\r
48 variable has the same information.\r
49 \r
50 Thanks to Trevor, David and Mark for their contributions.\r
51 ---\r
52 \r
53 This is version 6 of\r
54 \r
55      id:1391956711-21231-1-git-send-email-tomi.ollila@iki.fi\r
56 \r
57   The only change is $(VERSTAMP) -> version.stamp -- $(VERSTAMP) does not\r
58   get expanded for prerequisities if those are not already defined,\r
59   and as emacs/Makefile.local is included before Makefile.local $(VERSTAMP)\r
60   is useless in emacs/... (expands to nothing). And my original idea for\r
61   $(VERSTAMP) was for typo-checking -- I just did not realize that make does\r
62   not tell me that the variable is undefined so the typo-check I thought of\r
63   just did't happen.\r
64 \r
65 \r
66 And the following 2 patches version 2 of\r
67 \r
68         id:1390135903-28167-1-git-send-email-tomi.ollila@iki.fi\r
69 \r
70   Now utilizes version.stamp to know when notmuch.el is to be\r
71   re-bytecompiled.\r
72 \r
73  Makefile.local | 14 +++++++++++++-\r
74  1 file changed, 13 insertions(+), 1 deletion(-)\r
75 \r
76 diff --git a/Makefile.local b/Makefile.local\r
77 index 174506c..3a56c06 100644\r
78 --- a/Makefile.local\r
79 +++ b/Makefile.local\r
80 @@ -22,6 +22,11 @@ VERSION:=$(shell cat ${srcdir}/version)\r
81  ifeq ($(filter release release-message pre-release update-versions,$(MAKECMDGOALS)),)\r
82  ifeq ($(IS_GIT),yes)\r
83  VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)\r
84 +# Write the file 'version.stamp' in case its contents differ from $(VERSION)\r
85 +FILE_VERSION:=$(shell test -f version.stamp && read vs < version.stamp || vs=; echo $$vs)\r
86 +ifneq ($(FILE_VERSION),$(VERSION))\r
87 +       $(shell echo "$(VERSION)" > version.stamp)\r
88 +endif\r
89  endif\r
90  endif\r
91  \r
92 @@ -69,6 +74,11 @@ ifeq ($(shell cat .first-build-message 2>/dev/null),)\r
93  endif\r
94  endif\r
95  \r
96 +# Depend (also) on the file 'version'. In case of ifeq ($(IS_GIT),yes)\r
97 +# this file may already have been updated.\r
98 +version.stamp: version\r
99 +       echo $(VERSION) > $@\r
100 +\r
101  $(TAR_FILE):\r
102         if git tag -v $(VERSION) >/dev/null 2>&1; then \\r
103             ref=$(VERSION); \\r
104 @@ -280,6 +290,8 @@ notmuch_client_srcs =               \\r
105  \r
106  notmuch_client_modules = $(notmuch_client_srcs:.c=.o)\r
107  \r
108 +notmuch.o: version.stamp\r
109 +\r
110  notmuch: $(notmuch_client_modules) lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a\r
111         $(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@\r
112  \r
113 @@ -318,7 +330,7 @@ install-desktop:\r
114         desktop-file-install --mode 0644 --dir "$(DESTDIR)$(desktop_dir)" notmuch.desktop\r
115  \r
116  SRCS  := $(SRCS) $(notmuch_client_srcs)\r
117 -CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) notmuch.elc\r
118 +CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) version.stamp\r
119  \r
120  DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config\r
121  \r
122 -- \r
123 1.8.0\r
124 \r