25 lines
598 B
Makefile
Executable file
25 lines
598 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
SHELL := sh -e
|
|
|
|
%:
|
|
dh ${@} --buildsystem=pybuild
|
|
|
|
execute_after_dh_auto_clean:
|
|
# help pybuild
|
|
rm -rf *.egg-info
|
|
|
|
override_dh_auto_test:
|
|
# currently 4 tests fail, 1031 pass - needs fixing upstream
|
|
dh_auto_test || true
|
|
|
|
execute_after_dh_auto_install:
|
|
# bash-completion
|
|
mkdir -p debian/commitizen/usr/share/bash-completion/completions
|
|
|
|
for COMMAND in debian/commitizen/usr/bin/*; \
|
|
do \
|
|
register-python-argcomplete $${COMMAND} | \
|
|
sed -e 's|debian/commitizen/usr/bin/||g' > \
|
|
debian/commitizen/usr/share/bash-completion/completions/$$(basename $${COMMAND}); \
|
|
done
|