Skip to content

Commit 2923009

Browse files
authored
deb: place bash completion at correct path, using debhelper (#839)
fixes #794
1 parent cc0f3b1 commit 2923009

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎packaging/deb/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
55
build-essential \
66
devscripts \
77
dh-exec \
8+
bash-completion \
89
binutils-aarch64-linux-gnu \
910
binutils-arm-linux-gnueabihf \
1011
binutils-i686-linux-gnu \

‎packaging/deb/debian/control‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Source: zrepl
22
Maintainer: Christian Schwarz <[email protected]>
3-
Build-Depends: dh-exec
3+
Build-Depends: dh-exec, bash-completion
44

55
Package: zrepl
66
Architecture: arm64 amd64 armhf i386

‎packaging/deb/debian/rules‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/make -f
22

33
%:
4-
dh $@
4+
dh $@ --with bash-completion
55

66
override_dh_strip:
77

@@ -26,8 +26,9 @@ override_dh_auto_install:
2626
cp --preserve=all artifacts/$(ZREPL_DPKG_ZREPL_BINARY_FILENAME) debian/renamedir/zrepl
2727
dh_install debian/renamedir/zrepl usr/bin
2828

29-
# install bash completion
30-
dh_install artifacts/bash_completion etc/bash_completion.d/zrepl
29+
# install zsh completions
30+
# NB: bash completion auto-magic via dh_bash-completion
31+
# TODO: unify on https://tracker.debian.org/pkg/dh-shell-completions when available
3132
dh_install artifacts/_zrepl.zsh_completion usr/share/zsh/vendor-completions
3233

3334
# install docs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
artifacts/bash_completion zrepl

0 commit comments

Comments
 (0)