Revert auto completion installation attempt.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
Arun Prakash Jana 2016-05-25 09:55:00 +05:30
parent bf3ec63f76
commit baaefc6b5d
2 changed files with 2 additions and 24 deletions

View File

@ -3,11 +3,7 @@ BINDIR ?= $(DESTDIR)$(PREFIX)/bin
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku
BASHCOMPDIR = $(DESTDIR)/etc/bash_completion.d
FISHCOMPDIR = $(DESTDIR)/usr/share/fish/vendor_completions.d
ZSHCOMPDIR = $(DESTDIR)/usr/share/zsh/site-functions
.PHONY: all install install.comp uninstall uninstall.comp
.PHONY: all install uninstall
all:
@ -21,16 +17,7 @@ install:
install -m644 README.md $(DOCDIR)
rm -f buku.1.gz
install.comp:
install -m755 -d $(BASHCOMPDIR) $(FISHCOMPDIR) $(ZSHCOMPDIR)
install -m644 auto-completion/bash/buku-completion.bash $(BASHCOMPDIR)
install -m644 auto-completion/fish/buku.fish $(FISHCOMPDIR)
install -m644 auto-completion/zsh/_buku $(ZSHCOMPDIR)
uninstall:
rm -f $(BINDIR)/buku
rm -f $(MANDIR)/buku.1.gz
rm -rf $(DOCDIR)
uninstall.comp:
rm -f $(BASHCOMPDIR)/buku-completion.bash $(FISHCOMPDIR)/buku.fish $(ZSHCOMPDIR)/_buku

View File

@ -89,16 +89,7 @@ To remove, run:
## Shell completion
Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/buku/blob/master/auto-completion).
Install shell completion scripts:
$ sudo make install.comp
Remove shell completion scripts:
$ sudo make uninstall.comp
`DESTDIR` is supported.
Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/buku/blob/master/auto-completion). Please refer to your shell's manual for installation instructions.
## Installing with a package manager