| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh ${@} --buildsystem cargo |
| 5 |
|
| 6 |
override_dh_auto_test: |
| 7 |
dh_auto_test -- test --all |
| 8 |
|
| 9 |
execute_after_dh_auto_install: |
| 10 |
# bash-completion |
| 11 |
mkdir -p debian/forgejo-cli/usr/share/bash-completion/completions |
| 12 |
TMPDIR="$$(mktemp -d)"; \ |
| 13 |
HOME="$${TMPDIR}" XDG_CONFIG_HOME="$${TMPDIR}/.config" XDG_DATA_HOME="$${TMPDIR}/.local/share" \ |
| 14 |
debian/forgejo-cli/usr/bin/fj completion bash > debian/forgejo-cli/usr/share/bash-completion/completions/fj |
| 15 |
rm -rf "$${TMPDIR}" |