Generating bash-completion during build.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
47a508f27c
commit
580615af23
2 changed files with 8 additions and 1 deletions
1
debian/control
vendored
1
debian/control
vendored
|
@ -6,6 +6,7 @@ Build-Depends:
|
||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13),
|
||||||
dh-sequence-python3,
|
dh-sequence-python3,
|
||||||
python3-all,
|
python3-all,
|
||||||
|
python3-argcomplete,
|
||||||
python3-setuptools,
|
python3-setuptools,
|
||||||
python3-yaml,
|
python3-yaml,
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
|
|
8
debian/rules
vendored
8
debian/rules
vendored
|
@ -10,7 +10,13 @@ execute_after_dh_auto_clean:
|
||||||
execute_after_dh_auto_install:
|
execute_after_dh_auto_install:
|
||||||
# bash-completion
|
# bash-completion
|
||||||
mkdir -p debian/gita/usr/share/bash-completion/completions
|
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:
|
override_dh_auto_test:
|
||||||
# disabled
|
# disabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue