So far this is just a rename. Documentation and tests to follow.
---
Makefile.local | 7 +++++--
devel/nmbug/nmbug => notmuch-git.in | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
rename devel/nmbug/nmbug => notmuch-git.in (99%)
diff --git a/Makefile.local b/Makefile.local
index d8bbf3e1..ca2310f4 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -1,7 +1,7 @@
# -*- makefile-gmake -*-
.PHONY: all
-all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings
+all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings notmuch-git
ifeq ($(MAKECMDGOALS),)
ifeq ($(shell cat .first-build-message 2>/dev/null),)
@NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all
@@ -294,7 +294,7 @@ endif
SRCS := $(SRCS) $(notmuch_client_srcs)
CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules)
CLEAN := $(CLEAN) version.stamp notmuch-*.tar.gz.tmp
-CLEAN := $(CLEAN) .deps
+CLEAN := $(CLEAN) .deps notmuch-git
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config sh.config sphinx.config
@@ -307,6 +307,9 @@ cppcheck:
@echo "No cppcheck found during configure; skipping static checking"
endif
+notmuch-git: notmuch-git.in
+ sed s/@NOTMUCH_VERSION@/${VERSION}/ < notmuch-git.in > notmuch-git
+ chmod ugo+rx notmuch-git
DEPS := $(SRCS:%.c=.deps/%.d)
DEPS := $(DEPS:%.cc=.deps/%.d)
diff --git a/devel/nmbug/nmbug b/notmuch-git.in
similarity index 99%
rename from devel/nmbug/nmbug
rename to notmuch-git.in
index 043c1863..dd30b5be 100755
--- a/devel/nmbug/nmbug
+++ b/notmuch-git.in
@@ -51,7 +51,7 @@ except ImportError: # Python 2
from urllib import unquote as _unquote
-__version__ = '0.3'
+__version__ = '@NOTMUCH_VERSION@'
_LOG = _logging.getLogger('nmbug')
_LOG.setLevel(_logging.WARNING)
--
2.35.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org