1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
export PYBUILD_NAME=dialog
PKG := python3-$(PYBUILD_NAME)
PKGDIR := debian/$(PKG)
PKGDOCDIR := $(PKGDIR)/usr/share/doc/$(PKG)
%:
dh $@ --buildsystem=pybuild
execute_after_dh_clean:
rm -rf debian/doc-build
execute_after_dh_auto_build:
PYTHONPATH=. http_proxy='127.0.0.1:9' \
python3 -m sphinx -N -b html doc debian/doc-build/html
override_dh_compress:
dh_compress -X.py
execute_after_dh_installexamples:
find $(PKGDOCDIR)/examples -type f -name '*.py' -exec sed -i -e \
'1s,^#! */usr/bin/env \(python3\)$$,#! /usr/bin/\1,' '{}' +
|