Skip to content
Snippets Groups Projects
Commit 0d3d63e3 authored by Eric Bélanger's avatar Eric Bélanger Committed by Pierre Schmitz
Browse files

Fix bash completions


With bash-completion 2.0, the completion must have the same name as the binary.

Signed-off-by: default avatarEric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent d2ec5ab6
No related branches found
No related tags found
No related merge requests found
...@@ -64,6 +64,10 @@ CROSSREPOMOVE_LINKS = \ ...@@ -64,6 +64,10 @@ CROSSREPOMOVE_LINKS = \
extra2community \ extra2community \
community2extra community2extra
BASHCOMPLETION_LINKS = \
archco \
communityco
all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g" edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
...@@ -90,6 +94,7 @@ install: ...@@ -90,6 +94,7 @@ install:
for l in ${CROSSREPOMOVE_LINKS}; do ln -sf crossrepomove $(DESTDIR)$(PREFIX)/bin/$$l; done for l in ${CROSSREPOMOVE_LINKS}; do ln -sf crossrepomove $(DESTDIR)$(PREFIX)/bin/$$l; done
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
install -Dm0644 bash_completion $(DESTDIR)/usr/share/bash-completion/completions/devtools 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 install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools
ln -sf archco $(DESTDIR)$(PREFIX)/bin/communityco ln -sf archco $(DESTDIR)$(PREFIX)/bin/communityco
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment