21 lines
572 B
Makefile
Executable file
21 lines
572 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
%:
|
|
dh ${@} --buildsystem=pybuild
|
|
|
|
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 {} \;
|