summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules9
2 files changed, 9 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index a7a1a28..82ec1b6 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
debhelper-compat (= 12),
dh-python,
git,
+ help2man,
pylint,
python3-all,
python3-arrow,
diff --git a/debian/rules b/debian/rules
index 8ba7386..50d8599 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,14 @@ override_dh_auto_test:
PYBUILD_SYSTEM=custom dh_auto_test
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
execute_after_dh_fixperms: