Commit 77dfd8d3 authored by Satyam Zode's avatar Satyam Zode Committed by Reiner Herrmann

Add dependencies for argument completion

Add new rules for bash-completion script. Add new file debian/clean.
parent d733cb47
debian/diffoscope.1
debian/diffoscope.bash-completion
......@@ -7,9 +7,11 @@ Uploaders:
Mattia Rizzolo <mattia@debian.org>,
Reiner Herrmann <reiner@reiner-h.de>,
Build-Depends:
bash-completion,
binutils-multiarch,
debhelper (>= 9),
dh-python,
python-argcomplete,
python3-all,
python3-debian,
python3-docutils,
......
......@@ -8,10 +8,10 @@ ifneq ($(VERSION_dch),$(VERSION_py))
endif
%:
dh $@ --with python3 --buildsystem=pybuild
dh $@ --with python3 --with bash-completion --buildsystem=pybuild
override_dh_python3:
dh_python3 --recommends=python-debian --recommends=rpm-python --recommends=tlsh --recommends=guestfs
dh_python3 --recommends=python-debian --recommends=rpm-python --recommends=tlsh --recommends=guestfs --recommends=argcomplete
override_dh_gencontrol:
TOOLS="$$(bin/diffoscope --list-tools=debian | tail -n 1 | \
......@@ -23,13 +23,14 @@ override_dh_gencontrol:
debian/diffoscope.1: debian/diffoscope.1.rst
rst2man $< $@
debian/diffoscope.bash-completion:
register-python-argcomplete diffoscope > $@
override_dh_auto_build: debian/diffoscope.bash-completion debian/diffoscope.1
override_dh_installman: debian/diffoscope.1
dh_installman -O--buildsystem=pybuild
override_dh_clean:
rm -f debian/diffoscope.1
dh_clean -O--buildsystem=pybuild
diffoscope/presenters/icon.py: favicon.png
(echo '# Generated from favicon.png'; \
echo 'FAVICON_BASE64 = """'; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment