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
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=todo_txt_gtd
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/todo.txt-gtd\
--install-scripts=/usr/share/todo.txt-gtd
export PYBUILD_TEST_PYTEST=1
manpages = $(shell (ls debian/*.md | sed 's/.md//'))
%:
dh $@ --with python3 --buildsystem=pybuild --with bash-completion
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
cp debian/project.launch debian/todo.txt-gtd/usr/share/todo.txt-gtd/project
cp debian/gtdcleanup.launch debian/todo.txt-gtd/usr/share/todo.txt-gtd/gtdcleanup
for dir in prehooks posthooks; do \
mkdir -p debian/todo.txt-gtd/etc/todo.txt-base/$$dir; \
cp debian/50-gtdcleanup debian/todo.txt-gtd/etc/todo.txt-base/$$dir; \
done
|