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 DH_VERBOSE = 1
export PYBUILD_NAME=todo_txt_base
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/todo.txt-base\
--install-scripts=/usr/share/todo.txt-base
export PYBUILD_SYSTEM pyproject
manpages = $(shell (ls debian/*.md | sed 's/.md//'))
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
for mn in ${manpages}; do \
pandoc $$mn.md -s -t man -o $$mn; \
sed -i 's/\\\[en\]/\\\-/' $$mn; \
done
override_dh_auto_install:
dh_auto_install
(cd debian/todo.txt-base/usr/bin; mv todo-txt-base todo.txt-base)
cp debian/todo.txt debian/todo.txt-base/usr/bin/
|