1
0
Fork 0

Generating bash-completion during build.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-28 19:29:50 +02:00
parent 47a508f27c
commit 580615af23
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 8 additions and 1 deletions

1
debian/control vendored
View file

@ -6,6 +6,7 @@ Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
python3-all,
python3-argcomplete,
python3-setuptools,
python3-yaml,
Rules-Requires-Root: no

8
debian/rules vendored
View file

@ -10,7 +10,13 @@ execute_after_dh_auto_clean:
execute_after_dh_auto_install:
# bash-completion
mkdir -p debian/gita/usr/share/bash-completion/completions
cp auto-completion/bash/.gita-completion.bash debian/gita/usr/share/bash-completion/completions/gita
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