summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2012-06-24 23:50:22 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-06-25 00:01:32 +0200
commit0d3d63e3aa0adbd6a536ba187ec234f8b07364eb (patch)
tree9dd9f6968b2ef481b1f96ec7a12c7e7c897ed9b7
parentd2ec5ab67d97aa69b09381cd2aafe59a9d2095c3 (diff)
downloaddevtools-0d3d63e3aa0adbd6a536ba187ec234f8b07364eb.tar.gz
devtools-0d3d63e3aa0adbd6a536ba187ec234f8b07364eb.tar.xz
Fix bash completions
With bash-completion 2.0, the completion must have the same name as the binary. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c6fd1c9..4014a6f 100644
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,10 @@ CROSSREPOMOVE_LINKS = \
extra2community \
community2extra
+BASHCOMPLETION_LINKS = \
+ archco \
+ communityco
+
all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
@@ -90,6 +94,7 @@ install:
for l in ${CROSSREPOMOVE_LINKS}; do ln -sf crossrepomove $(DESTDIR)$(PREFIX)/bin/$$l; done
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
install -Dm0644 bash_completion $(DESTDIR)/usr/share/bash-completion/completions/devtools
+ for l in ${BASHCOMPLETION_LINKS}; do ln -sf devtools $(DESTDIR)/usr/share/bash-completion/completions/$$l; done
install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools
ln -sf archco $(DESTDIR)$(PREFIX)/bin/communityco