summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Kreuzer <andreas.kreuzer@open-infrastructure.net>2016-06-14 15:24:38 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:09:35 +0000
commita079edf934e4c5906dcf26b93bd2777f7a0e30ff (patch)
tree72371d29701e521407da3f8a4c997a312e3c067d /Makefile
parentUsing UTF-8 symbols for container status. (diff)
downloadcompute-tools-a079edf934e4c5906dcf26b93bd2777f7a0e30ff.tar.xz
compute-tools-a079edf934e4c5906dcf26b93bd2777f7a0e30ff.zip
Adding bash-completion.
Signed-off-by: Andreas Kreuzer <andreas.kreuzer@open-infrastructure.net> Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9ab39e..d22c32c 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,9 @@ install: build
mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE)
cp -r VERSION.txt share/config share/scripts ${DESTDIR}/usr/share/$(SOFTWARE)
+ mkdir -p $(DESTDIR)/usr/share/bash-completion/completions
+ cp -r share/bash-completion/* $(DESTDIR)/usr/share/bash-completion/completions
+
mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE)
cp -r share/doc $(DESTDIR)/usr/share/doc/$(SOFTWARE)
@@ -118,6 +121,11 @@ uninstall:
rm -f $(DESTDIR)/usr/bin/cntsh
rm -f $(DESTDIR)/usr/share/man/man1/cntsh.1
+ for FILE in share/bash-completion/*; \
+ do \
+ rm -f $(DESTDIR)/usr/share/bash-completion/completions/$$(basename $${FILE}); \
+ done
+
rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/doc || true