| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
VERSION ?= $(shell dpkg-parsechangelog --show-field Version) |
| 4 |
P = check-all-the-things |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --with bash-completion |
| 8 |
|
| 9 |
override_dh_gencontrol: |
| 10 |
./check-all-the-things --set-debian-substvars |
| 11 |
dh_gencontrol |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
help2man \ |
| 15 |
--version-string=$(VERSION) \ |
| 16 |
--no-info \ |
| 17 |
--name="Check all of the things!" \ |
| 18 |
./$P \ |
| 19 |
> $P.1 |
| 20 |
register-python-argcomplete check-all-the-things > debian/$P.bash-completion |
| 21 |
sed -i s/_python_argcomplete/_check_all_the_things_argcomplete/ debian/$P.bash-completion |
| 22 |
sed -i 's/$$1/check-all-the-things/' debian/$P.bash-completion |