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 MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku
BASHCOMPDIR = $(DESTDIR)/etc/bash_completion.d .PHONY: all install uninstall
FISHCOMPDIR = $(DESTDIR)/usr/share/fish/vendor_completions.d
ZSHCOMPDIR = $(DESTDIR)/usr/share/zsh/site-functions
.PHONY: all install install.comp uninstall uninstall.comp
all: all:
@ -21,16 +17,7 @@ install:
install -m644 README.md $(DOCDIR) install -m644 README.md $(DOCDIR)
rm -f buku.1.gz 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: uninstall:
rm -f $(BINDIR)/buku rm -f $(BINDIR)/buku
rm -f $(MANDIR)/buku.1.gz rm -f $(MANDIR)/buku.1.gz
rm -rf $(DOCDIR) 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
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). 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.
Install shell completion scripts:
$ sudo make install.comp
Remove shell completion scripts:
$ sudo make uninstall.comp
`DESTDIR` is supported.
## Installing with a package manager ## Installing with a package manager