Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / e8 / b0517567823feb9f1024f869f451108a436842
1 Return-Path: <bremner@tethera.net>\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 DA244429E2F\r
6         for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 18:26:46 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 hFD2fcUfDA9X for <notmuch@notmuchmail.org>;\r
16         Thu, 17 Nov 2011 18:26:46 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1FBE1429E27\r
21         for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 18:26:46 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034074106.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.74.106]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAI2QdjX028543\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Thu, 17 Nov 2011 22:26:42 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1RREA2-0005GB-Tl; Thu, 17 Nov 2011 22:26:38 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 2/3] build system: add target update-versions to propagate\r
34         version\r
35 Date: Thu, 17 Nov 2011 22:26:25 -0400\r
36 Message-Id: <1321583186-20187-2-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.7.1\r
38 In-Reply-To: <1321583186-20187-1-git-send-email-david@tethera.net>\r
39 References: <87y5vtm3as.fsf@nikula.org>\r
40         <1321583186-20187-1-git-send-email-david@tethera.net>\r
41 Cc: David Bremner <bremner@debian.org>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Fri, 18 Nov 2011 02:26:47 -0000\r
55 \r
56 From: David Bremner <bremner@debian.org>\r
57 \r
58 The version from file "version" is propagated to the man page and the\r
59 python bindings via sed. Note that the git version is ignored because\r
60 of the check for MAKECMDGOALS.\r
61 ---\r
62  Makefile.local |   14 +++++++++++++-\r
63  1 files changed, 13 insertions(+), 1 deletions(-)\r
64 \r
65 diff --git a/Makefile.local b/Makefile.local\r
66 index 10e6668..775f393 100644\r
67 --- a/Makefile.local\r
68 +++ b/Makefile.local\r
69 @@ -12,8 +12,14 @@ PACKAGE=notmuch\r
70  \r
71  IS_GIT=$(shell if [ -d .git ] ; then echo yes ; else echo no; fi)\r
72  \r
73 +ifeq ($(IS_GIT),yes)\r
74 +DATE:=$(shell git log --date=short -1 --pretty=format:%cd)\r
75 +else\r
76 +DATE:=$(shell date +%F)\r
77 +endif\r
78 +\r
79  VERSION:=$(shell cat ${srcdir}/version)\r
80 -ifeq ($filter release release-message pre-release,$(MAKECMDGOALS),)\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  endif\r
85 @@ -87,6 +93,12 @@ $(GPG_FILE): $(SHA1_FILE)\r
86  .PHONY: dist\r
87  dist: $(TAR_FILE)\r
88  \r
89 +.PHONY: update-versions\r
90 +\r
91 +update-versions:\r
92 +       sed -i "s/^.TH NOTMUCH 1.*$$/.TH NOTMUCH 1 ${DATE} \"Notmuch ${VERSION}\"/" notmuch.1\r
93 +       sed -i "s/^__VERSION__[[:blank:]]*=.*$$/__VERSION__ = \'${VERSION}\'/" $(PV_FILE)\r
94 +\r
95  # We invoke make recursively only to force ordering of our phony\r
96  # targets in the case of parallel invocation of make (-j).\r
97  #\r
98 -- \r
99 1.7.7.1\r
100 \r