mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-22 07:00:44 +01:00
deb: place bash completion at correct path, using debhelper (#839)
fixes https://github.com/zrepl/zrepl/issues/794
This commit is contained in:
parent
cc0f3b1f13
commit
2923009689
@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
devscripts \
|
||||
dh-exec \
|
||||
bash-completion \
|
||||
binutils-aarch64-linux-gnu \
|
||||
binutils-arm-linux-gnueabihf \
|
||||
binutils-i686-linux-gnu \
|
||||
|
@ -1,6 +1,6 @@
|
||||
Source: zrepl
|
||||
Maintainer: Christian Schwarz <me@cschwarz.com>
|
||||
Build-Depends: dh-exec
|
||||
Build-Depends: dh-exec, bash-completion
|
||||
|
||||
Package: zrepl
|
||||
Architecture: arm64 amd64 armhf i386
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
dh $@ --with bash-completion
|
||||
|
||||
override_dh_strip:
|
||||
|
||||
@ -26,8 +26,9 @@ override_dh_auto_install:
|
||||
cp --preserve=all artifacts/$(ZREPL_DPKG_ZREPL_BINARY_FILENAME) debian/renamedir/zrepl
|
||||
dh_install debian/renamedir/zrepl usr/bin
|
||||
|
||||
# install bash completion
|
||||
dh_install artifacts/bash_completion etc/bash_completion.d/zrepl
|
||||
# install zsh completions
|
||||
# NB: bash completion auto-magic via dh_bash-completion
|
||||
# TODO: unify on https://tracker.debian.org/pkg/dh-shell-completions when available
|
||||
dh_install artifacts/_zrepl.zsh_completion usr/share/zsh/vendor-completions
|
||||
|
||||
# install docs
|
||||
|
1
packaging/deb/debian/zrepl.bash-completion
Normal file
1
packaging/deb/debian/zrepl.bash-completion
Normal file
@ -0,0 +1 @@
|
||||
artifacts/bash_completion zrepl
|
Loading…
Reference in New Issue
Block a user