[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / b2 / e023172d3fa29783f44a612e4c1b61b9d9561d
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 15239431FBC\r
6         for <notmuch@notmuchmail.org>; Mon,  7 Apr 2014 11:05:24 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.07\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.07 tagged_above=-999 required=5\r
12         tests=[DATE_IN_PAST_96_XX=2.07] 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 mJOWGUD3Osfy for <notmuch@notmuchmail.org>;\r
16         Mon,  7 Apr 2014 11:05:14 -0700 (PDT)\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 8254F431FB6\r
19         for <notmuch@notmuchmail.org>; Mon,  7 Apr 2014 11:05:14 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 7D6741000E3; Mon,  7 Apr 2014 21:05:07 +0300 (EEST)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH v4 2/3] emacs: add notmuch-version.el.tmpl and create\r
25         notmuch-version.el from it\r
26 Message-Id: <1395261431-24668-2b-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 1.8.0\r
28 In-Reply-To: <1395261431-24668-1-git-send-email-tomi.ollila@iki.fi>\r
29 References: <1395261431-24668-1-git-send-email-tomi.ollila@iki.fi>\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 Date: Mon, 07 Apr 2014 18:05:24 -0000\r
44 X-Original-Date: Wed, 19 Mar 2014 22:37:10 +0200\r
45 X-List-Received-Date: Mon, 07 Apr 2014 18:05:24 -0000\r
46 \r
47 The notmuch cli program and emacs lisp versions may differ (especially\r
48 in remote usage). It helps to resolve problems if we can determine\r
49 the versions of notmuch cli and notmuch emacs mua separately.\r
50 \r
51 The build process now creates notmuch-version.el from template file\r
52 by filling the version info to notmuch-emacs-version variable.\r
53 ---\r
54 \r
55 Alternative to id:1395261431-24668-2-git-send-email-tomi.ollila@iki.fi\r
56 only change being in notmuch-emacs-version docstring.\r
57 \r
58  emacs/.gitignore              |  1 +\r
59  emacs/Makefile.local          | 11 +++++++++--\r
60  emacs/notmuch-version.el.tmpl | 23 +++++++++++++++++++++++\r
61  emacs/notmuch.el              |  4 ++++\r
62  4 files changed, 37 insertions(+), 2 deletions(-)\r
63  create mode 100644 emacs/notmuch-version.el.tmpl\r
64 \r
65 diff --git a/emacs/.gitignore b/emacs/.gitignore\r
66 index 5421301..9fa1c44 100644\r
67 --- a/emacs/.gitignore\r
68 +++ b/emacs/.gitignore\r
69 @@ -1,2 +1,3 @@\r
70  .eldeps*\r
71  *.elc\r
72 +notmuch-version.el\r
73 diff --git a/emacs/Makefile.local b/emacs/Makefile.local\r
74 index 6a39b32..ca039e5 100644\r
75 --- a/emacs/Makefile.local\r
76 +++ b/emacs/Makefile.local\r
77 @@ -17,7 +17,14 @@ emacs_sources := \\r
78         $(dir)/notmuch-crypto.el \\r
79         $(dir)/notmuch-tag.el \\r
80         $(dir)/coolj.el \\r
81 -       $(dir)/notmuch-print.el\r
82 +       $(dir)/notmuch-print.el \\r
83 +       $(dir)/notmuch-version.el\r
84 +\r
85 +$(dir)/notmuch-version.el: $(dir)/Makefile.local version.stamp\r
86 +$(dir)/notmuch-version.el: $(dir)/notmuch-version.el.tmpl\r
87 +       @sed -e 's/%AG%/Generated file (from $(<F)) -- do not edit!/' \\r
88 +            -e 's/%VERSION%/"$(VERSION)"/' $< > $@\r
89 +\r
90  \r
91  emacs_images := \\r
92         $(srcdir)/$(dir)/notmuch-logo.png\r
93 @@ -71,4 +78,4 @@ endif\r
94         mkdir -p "$(DESTDIR)$(emacsetcdir)"\r
95         install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"\r
96  \r
97 -CLEAN := $(CLEAN) $(emacs_bytecode)\r
98 +CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el\r
99 diff --git a/emacs/notmuch-version.el.tmpl b/emacs/notmuch-version.el.tmpl\r
100 new file mode 100644\r
101 index 0000000..6cf367b\r
102 --- /dev/null\r
103 +++ b/emacs/notmuch-version.el.tmpl\r
104 @@ -0,0 +1,23 @@\r
105 +;; -*- emacs-lisp -*-\r
106 +;;\r
107 +;; %AG%\r
108 +;;\r
109 +;; This file is part of Notmuch.\r
110 +;;\r
111 +;; Notmuch is free software: you can redistribute it and/or modify it\r
112 +;; under the terms of the GNU General Public License as published by\r
113 +;; the Free Software Foundation, either version 3 of the License, or\r
114 +;; (at your option) any later version.\r
115 +;;\r
116 +;; Notmuch is distributed in the hope that it will be useful, but\r
117 +;; WITHOUT ANY WARRANTY; without even the implied warranty of\r
118 +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
119 +;; General Public License for more details.\r
120 +;;\r
121 +;; You should have received a copy of the GNU General Public License\r
122 +;; along with Notmuch.  If not, see <http://www.gnu.org/licenses/>.\r
123 +\r
124 +(defconst notmuch-emacs-version %VERSION%\r
125 +  "Version of Notmuch Emacs MUA.")\r
126 +\r
127 +(provide 'notmuch-version)\r
128 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
129 index 0471750..b7dd944 100644\r
130 --- a/emacs/notmuch.el\r
131 +++ b/emacs/notmuch.el\r
132 @@ -61,6 +61,10 @@\r
133  (require 'notmuch-message)\r
134  (require 'notmuch-parser)\r
135  \r
136 +(unless (require 'notmuch-version nil t)\r
137 +  (defconst notmuch-emacs-version "unknown"\r
138 +    "Placeholder variable when notmuch-version.el[c] is not available."))\r
139 +\r
140  (defcustom notmuch-search-result-format\r
141    `(("date" . "%12s ")\r
142      ("count" . "%-7s ")\r
143 -- \r
144 1.8.0\r
145 \r