blob: 3df7be35bae64aecfac2e889d2913137bc20208e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/make -f
VERSION := $(shell dpkg-parsechangelog -SVersion)
%:
dh ${@} --buildsystem=pybuild --sourcedir=$(CURDIR)/gitlint-core
execute_after_dh_auto_clean:
rm -f gitlint-core/_version.py
execute_before_dh_auto_build:
echo "__version__ = version = '$(VERSION)'" > gitlint-core/_version.py
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
|