diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:11 +0000 |
commit | b2d3e731d30e77b921ce1f823cdbbfc23e81828a (patch) | |
tree | c4dd31a5d9bf77729634aa61db521c37155a0420 /debian/rules | |
parent | Adding upstream version 0.18.0. (diff) | |
download | gitlint-b2d3e731d30e77b921ce1f823cdbbfc23e81828a.tar.xz gitlint-b2d3e731d30e77b921ce1f823cdbbfc23e81828a.zip |
Adding debian version 0.18.0-2.debian/0.18.0-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..eb07b9d --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +%: + dh ${@} --buildsystem=pybuild --sourcedir=$(CURDIR)/gitlint-core + +override_dh_auto_test: + # disabled + +execute_after_dh_auto_install: + # 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: + find debian/gitlint/usr/lib -name commit-msg -exec chmod +x {} \; + +override_dh_missing: + # disabled |