[lxc-devel] [lxc-pkg-ubuntu/dpm-xenial] only move lxc bash completion from /etc if we installed it there
evgeni on Github
lxc-bot at linuxcontainers.org
Sun Feb 19 18:07:02 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 388 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170219/b7b8f32c/attachment.bin>
-------------- next part --------------
From bbab45c87d50044d013a0bc3103f5a3ae3fab6e9 Mon Sep 17 00:00:00 2001
From: Evgeni Golov <evgeni at debian.org>
Date: Sun, 19 Feb 2017 19:04:59 +0100
Subject: [PATCH] only move lxc bash completion from /etc if we installed it
there
these days the installation should happen directly to /usr thanks
to pkg-config
---
debian/rules | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 2b711de..a5ecf20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -69,7 +69,9 @@ override_dh_install:
# move the bash completion profile
mkdir -p debian/tmp/usr/share/bash-completion
- mv debian/tmp/etc/bash_completion.d debian/tmp/usr/share/bash-completion/completions
+ if [ -f debian/tmp/etc/bash_completion.d/lxc ]; then \
+ mv debian/tmp/etc/bash_completion.d/lxc debian/tmp/usr/share/bash-completion/completions \
+ fi
mv debian/tmp/usr/share/bash-completion/completions/lxc debian/tmp/usr/share/bash-completion/completions/lxc1
grep complete debian/tmp/usr/share/bash-completion/completions/lxc1 | sed "s/.* //g" | while read cmd; do \
ln -s lxc1 debian/tmp/usr/share/bash-completion/completions/$${cmd}; \
More information about the lxc-devel
mailing list