mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-21 16:03:32 +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 \
|
build-essential \
|
||||||
devscripts \
|
devscripts \
|
||||||
dh-exec \
|
dh-exec \
|
||||||
|
bash-completion \
|
||||||
binutils-aarch64-linux-gnu \
|
binutils-aarch64-linux-gnu \
|
||||||
binutils-arm-linux-gnueabihf \
|
binutils-arm-linux-gnueabihf \
|
||||||
binutils-i686-linux-gnu \
|
binutils-i686-linux-gnu \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Source: zrepl
|
Source: zrepl
|
||||||
Maintainer: Christian Schwarz <me@cschwarz.com>
|
Maintainer: Christian Schwarz <me@cschwarz.com>
|
||||||
Build-Depends: dh-exec
|
Build-Depends: dh-exec, bash-completion
|
||||||
|
|
||||||
Package: zrepl
|
Package: zrepl
|
||||||
Architecture: arm64 amd64 armhf i386
|
Architecture: arm64 amd64 armhf i386
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@ --with bash-completion
|
||||||
|
|
||||||
override_dh_strip:
|
override_dh_strip:
|
||||||
|
|
||||||
@ -26,8 +26,9 @@ override_dh_auto_install:
|
|||||||
cp --preserve=all artifacts/$(ZREPL_DPKG_ZREPL_BINARY_FILENAME) debian/renamedir/zrepl
|
cp --preserve=all artifacts/$(ZREPL_DPKG_ZREPL_BINARY_FILENAME) debian/renamedir/zrepl
|
||||||
dh_install debian/renamedir/zrepl usr/bin
|
dh_install debian/renamedir/zrepl usr/bin
|
||||||
|
|
||||||
# install bash completion
|
# install zsh completions
|
||||||
dh_install artifacts/bash_completion etc/bash_completion.d/zrepl
|
# 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
|
dh_install artifacts/_zrepl.zsh_completion usr/share/zsh/vendor-completions
|
||||||
|
|
||||||
# install docs
|
# 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