Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 # For reproducible builds
4 export LC_ALL=C.UTF-8
5 export LANG=C.UTF-8
6
7 export PYBUILD_NAME=click-man
8
9 %:
10 dh $@ --buildsystem=pybuild
11
12 # Move the command line interfaces to their own package.
13 override_dh_install:
14 mkdir -p debian/click-man/usr/bin
15 mv debian/python3-click-man/usr/bin/* debian/click-man/usr/bin
16
17 # Use it on itself.
18 # It normally includes a datestamp, so we replace that.
19 override_dh_installman:
20 mkdir -p debian/tmp/manpages
21 PYTHONPATH=$$(pwd) python3 debian/gen-own-manpages.py $$(dpkg-parsechangelog --show-field version)
22 sed -i 's/^[.]TH.*/.TH CLICK-MAN 1/' debian/tmp/manpages/click-man.1
23 dh_installman -O--buildsystem=pybuild