mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
nmbug: promote to user tool "notmuch-git"
Initially just a rename, and drop the --version argument that clashes with the global notmuch --version argument.
This commit is contained in:
parent
9695e4c38d
commit
803ac83c46
2 changed files with 6 additions and 7 deletions
|
@ -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)
|
||||
|
||||
|
|
6
devel/nmbug/nmbug → notmuch-git.py
Executable file → Normal file
6
devel/nmbug/nmbug → notmuch-git.py
Executable file → Normal file
|
@ -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'],
|
Loading…
Reference in a new issue