Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / f1 / e4b36d81e4a8d77c06bfc910446e3f4928fa57
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 0A131431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 27 Jan 2014 13:43:38 -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 PlM24Xm49vHU for <notmuch@notmuchmail.org>;\r
16         Mon, 27 Jan 2014 13:43:25 -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 853D4431FBD\r
19         for <notmuch@notmuchmail.org>; Mon, 27 Jan 2014 13:43:25 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 0A7D010008B; Mon, 27 Jan 2014 23:43:21 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH v2] build: write VERSION file containing $(VERSION) string\r
25 Date: Mon, 27 Jan 2014 23:43:18 +0200\r
26 Message-Id: <1390858998-9846-1-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 1.8.0\r
28 In-Reply-To: <87wqhm8qn7.fsf@qmul.ac.uk>\r
29 References: <87wqhm8qn7.fsf@qmul.ac.uk>\r
30 Cc: tomi.ollila@iki.fi\r
31 X-BeenThere: notmuch@notmuchmail.org\r
32 X-Mailman-Version: 2.1.13\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: Mon, 27 Jan 2014 21:43:38 -0000\r
44 \r
45 This version file will be as prerequisite to the target files\r
46 that use the version info for some purpose, like printing\r
47 it to the user to examine. The contents of the VERSION file\r
48 is seldom read by the build system itself as the $(VERSION)\r
49 variable has the same information.\r
50 ---\r
51 \r
52 This is version 2 of id:1390689800-16654-1-git-send-email-tomi.ollila@iki.fi\r
53 \r
54 in case of IS_GIT = yes, the contents of file VERSION is compared what\r
55 git describe returns and if this differs then VERSION file is updated.\r
56 \r
57  Makefile.local | 10 +++++++++-\r
58 \r
59 diff --git a/Makefile.local b/Makefile.local\r
60 index c85e09c..96f39be 100644\r
61 --- a/Makefile.local\r
62 +++ b/Makefile.local\r
63 @@ -21,7 +21,8 @@ endif\r
64  VERSION:=$(shell cat ${srcdir}/version)\r
65  ifeq ($(filter release release-message pre-release update-versions,$(MAKECMDGOALS)),)\r
66  ifeq ($(IS_GIT),yes)\r
67 -VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)\r
68 +# Also write VERSION file in case its contents differ from $(VERSION)\r
69 +VERSION:=$(shell gv=`exec git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/`; test -f VERSION || touch VERSION; read fv < VERSION; test x"$$fv" = x"$$gv" || echo "$$gv" > VERSION; echo "$$gv")\r
70  endif\r
71  endif\r
72  \r
73 @@ -69,6 +70,11 @@ ifeq ($(shell cat .first-build-message 2>/dev/null),)\r
74  endif\r
75  endif\r
76  \r
77 +# Depend (also) on 'version' file. In case of ifeq ($(IS_GIT),yes)\r
78 +# this file may already have been updated.\r
79 +VERSION: version\r
80 +       echo $(VERSION) > version\r
81 +\r
82  $(TAR_FILE):\r
83         if git tag -v $(VERSION) >/dev/null 2>&1; then \\r
84             ref=$(VERSION); \\r
85 @@ -280,6 +286,8 @@ notmuch_client_srcs =               \\r
86  \r
87  notmuch_client_modules = $(notmuch_client_srcs:.c=.o)\r
88  \r
89 +notmuch.o: VERSION\r
90 +\r
91  notmuch: $(notmuch_client_modules) lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a\r
92         $(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@\r
93  \r
94 -- \r
95 1.8.4.2\r
96 \r