1
0
Fork 0
gita/debian/rules
Daniel Baumann 580615af23
Generating bash-completion during build.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-04-28 19:30:04 +02:00

22 lines
487 B
Makefile
Executable file

#!/usr/bin/make -f
%:
dh ${@} --buildsystem=pybuild
execute_after_dh_auto_clean:
# help pybuild
rm -rf *.egg-info
execute_after_dh_auto_install:
# bash-completion
mkdir -p debian/gita/usr/share/bash-completion/completions
for COMMAND in debian/gita/usr/bin/*; \
do \
register-python-argcomplete $${COMMAND} | \
sed -e 's|debian/gita/usr/bin/||g' > \
debian/gita/usr/share/bash-completion/completions/$$(basename $${COMMAND}); \
done
override_dh_auto_test:
# disabled