Initially just a rename, and drop the --version argument that clashes
with the global notmuch --version argument.
---
Makefile.local | 7 ++++++-
devel/nmbug/nmbug => notmuch-git.py | 6 ------
2 files changed, 6 insertions(+), 7 deletions(-)
rename devel/nmbug/nmbug => notmuch-git.py (99%)
mode change 100755 => 100644
diff --git a/Makefile.local b/Makefile.local
index d8bbf3e1..d2e0c7a8 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
@@ -45,6 +45,11 @@ $(SHA256_FILE): $(TAR_FILE)
$(DETACHED_SIG_FILE): $(TAR_FILE)
gpg --armor --detach-sign $^
+CLEAN := $(CLEAN) notmuch-git
+notmuch-git: notmuch-git.py
+ cp $< $@
+ chmod ugo+x $@
+
.PHONY: dist
dist: $(TAR_FILE)
diff --git a/devel/nmbug/nmbug b/notmuch-git.py
old mode 100755
new mode 100644
similarity index 99%
rename from devel/nmbug/nmbug
rename to notmuch-git.py
index 043c1863..04cdae0f
--- a/devel/nmbug/nmbug
+++ b/notmuch-git.py
@@ -50,9 +50,6 @@ except ImportError: # Python 2
from urllib import quote as _quote
from urllib import unquote as _unquote
-
-__version__ = '0.3'
-
_LOG = _logging.getLogger('nmbug')
_LOG.setLevel(_logging.WARNING)
_LOG.addHandler(_logging.StreamHandler())
@@ -718,9 +715,6 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(
description=__doc__.strip(),
formatter_class=argparse.RawDescriptionHelpFormatter)
- parser.add_argument(
- '-v', '--version', action='version',
- version='%(prog)s {}'.format(__version__))
parser.add_argument(
'-l', '--log-level',
choices=['critical', 'error', 'warning', 'info', 'debug'],
--
2.35.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org