Adding manpage generated with help2man.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7b4f07eba1
commit
bf7c59bb04
2 changed files with 9 additions and 1 deletions
1
debian/control
vendored
1
debian/control
vendored
|
@ -7,6 +7,7 @@ Build-Depends:
|
||||||
debhelper-compat (= 12),
|
debhelper-compat (= 12),
|
||||||
dh-python,
|
dh-python,
|
||||||
git,
|
git,
|
||||||
|
help2man,
|
||||||
pylint,
|
pylint,
|
||||||
python3-all,
|
python3-all,
|
||||||
python3-arrow,
|
python3-arrow,
|
||||||
|
|
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -10,7 +10,14 @@ override_dh_auto_test:
|
||||||
PYBUILD_SYSTEM=custom dh_auto_test
|
PYBUILD_SYSTEM=custom dh_auto_test
|
||||||
|
|
||||||
execute_after_dh_auto_install:
|
execute_after_dh_auto_install:
|
||||||
# we don't want them in the package?
|
# manpage
|
||||||
|
mkdir -p debian/gitlint/usr/share/man/man1
|
||||||
|
|
||||||
|
PYTHONPATH=debian/gitlint/usr/lib/$$(py3versions -d)/dist-packages \
|
||||||
|
help2man --no-discard-stderr --name 'Git commit message linter' \
|
||||||
|
debian/gitlint/usr/bin/gitlint > debian/gitlint/usr/share/man/man1/gitlint.1
|
||||||
|
|
||||||
|
# removing unused files
|
||||||
rm -rf debian/gitlint/usr/lib/python*/dist-packages/qa
|
rm -rf debian/gitlint/usr/lib/python*/dist-packages/qa
|
||||||
|
|
||||||
execute_after_dh_fixperms:
|
execute_after_dh_fixperms:
|
||||||
|
|
Loading…
Add table
Reference in a new issue