mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
Move bash/zsh completion out of contrib
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
d590a45795
commit
2e76c184aa
@ -28,14 +28,9 @@ OURSCRIPTS = \
|
|||||||
$(BASHSCRIPTS) \
|
$(BASHSCRIPTS) \
|
||||||
$(OTHERSCRIPTS)
|
$(OTHERSCRIPTS)
|
||||||
|
|
||||||
OURFILES = \
|
|
||||||
bash_completion \
|
|
||||||
zsh_completion
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
PKGBUILD.vim \
|
PKGBUILD.vim \
|
||||||
bacman.sh.in \
|
bacman.sh.in \
|
||||||
bash_completion.in \
|
|
||||||
checkupdates.sh.in \
|
checkupdates.sh.in \
|
||||||
paccache.sh.in \
|
paccache.sh.in \
|
||||||
paclog-pkglist.sh.in \
|
paclog-pkglist.sh.in \
|
||||||
@ -46,11 +41,10 @@ EXTRA_DIST = \
|
|||||||
rankmirrors.sh.in \
|
rankmirrors.sh.in \
|
||||||
updpkgsums.sh.in \
|
updpkgsums.sh.in \
|
||||||
vimprojects \
|
vimprojects \
|
||||||
zsh_completion.in \
|
|
||||||
README
|
README
|
||||||
|
|
||||||
# Files that should be removed, but which Automake does not know.
|
# Files that should be removed, but which Automake does not know.
|
||||||
MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
|
MOSTLYCLEANFILES = $(OURSCRIPTS) *.tmp
|
||||||
|
|
||||||
if USE_GIT_VERSION
|
if USE_GIT_VERSION
|
||||||
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//')
|
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//')
|
||||||
@ -85,20 +79,9 @@ $(OURFILES): Makefile
|
|||||||
$(AM_V_at)chmod a-w $@.tmp
|
$(AM_V_at)chmod a-w $@.tmp
|
||||||
$(AM_V_at)mv $@.tmp $@
|
$(AM_V_at)mv $@.tmp $@
|
||||||
|
|
||||||
all-am: $(OURSCRIPTS) $(OURFILES)
|
all-am: $(OURSCRIPTS)
|
||||||
|
|
||||||
install-data-local:
|
|
||||||
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
|
||||||
$(INSTALL_DATA) bash_completion $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
|
|
||||||
$(MKDIR_P) $(DESTDIR)$(datarootdir)/zsh/site-functions/
|
|
||||||
$(INSTALL_DATA) zsh_completion $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
$(RM) $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
|
|
||||||
$(RM) $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
|
|
||||||
|
|
||||||
bacman: $(srcdir)/bacman.sh.in
|
bacman: $(srcdir)/bacman.sh.in
|
||||||
bash_completion: $(srcdir)/bash_completion.in
|
|
||||||
checkupdates: $(srcdir)/checkupdates.sh.in
|
checkupdates: $(srcdir)/checkupdates.sh.in
|
||||||
paccache: $(srcdir)/paccache.sh.in $(top_srcdir)/scripts/library/parseopts.sh $(top_srcdir)/scripts/library/size_to_human.sh
|
paccache: $(srcdir)/paccache.sh.in $(top_srcdir)/scripts/library/parseopts.sh $(top_srcdir)/scripts/library/size_to_human.sh
|
||||||
pacdiff: $(srcdir)/pacdiff.sh.in
|
pacdiff: $(srcdir)/pacdiff.sh.in
|
||||||
@ -108,6 +91,5 @@ pacscripts: $(srcdir)/pacscripts.sh.in
|
|||||||
pacsearch: $(srcdir)/pacsearch.in
|
pacsearch: $(srcdir)/pacsearch.in
|
||||||
rankmirrors: $(srcdir)/rankmirrors.sh.in
|
rankmirrors: $(srcdir)/rankmirrors.sh.in
|
||||||
updpkgsums: $(srcdir)/updpkgsums.sh.in
|
updpkgsums: $(srcdir)/updpkgsums.sh.in
|
||||||
zsh_completion: $(srcdir)/zsh_completion.in
|
|
||||||
|
|
||||||
# vim:set noet:
|
# vim:set noet:
|
||||||
|
@ -26,6 +26,7 @@ EXTRA_DIST = \
|
|||||||
pacman-key.sh.in \
|
pacman-key.sh.in \
|
||||||
pkgdelta.sh.in \
|
pkgdelta.sh.in \
|
||||||
repo-add.sh.in \
|
repo-add.sh.in \
|
||||||
|
$(COMPLETION_DIST) \
|
||||||
$(LIBRARY) \
|
$(LIBRARY) \
|
||||||
$(LIBMAKEPKG_DIST)
|
$(LIBMAKEPKG_DIST)
|
||||||
|
|
||||||
@ -102,8 +103,15 @@ LIBMAKEPKG_DIST = \
|
|||||||
$(LIBMAKEPKG) \
|
$(LIBMAKEPKG) \
|
||||||
$(addsuffix .in, $(LIBMAKEPKG_IN))
|
$(addsuffix .in, $(LIBMAKEPKG_IN))
|
||||||
|
|
||||||
|
COMPLETION_IN = \
|
||||||
|
completion/bash_completion \
|
||||||
|
completion/zsh_completion
|
||||||
|
|
||||||
|
COMPLETION_DIST = \
|
||||||
|
$(addsuffix .in, $(COMPLETION_IN))
|
||||||
|
|
||||||
# Files that should be removed, but which Automake does not know.
|
# Files that should be removed, but which Automake does not know.
|
||||||
MOSTLYCLEANFILES = $(bin_SCRIPTS) $(LIBMAKEPKG_IN)
|
MOSTLYCLEANFILES = $(bin_SCRIPTS) $(LIBMAKEPKG_IN) $(COMPLETION_IN)
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
$(AM_V_at)$(RM) -r .lib
|
$(AM_V_at)$(RM) -r .lib
|
||||||
@ -157,6 +165,14 @@ $(LIBMAKEPKG_IN): %: %.in Makefile
|
|||||||
$(AM_V_at)chmod a-w $@
|
$(AM_V_at)chmod a-w $@
|
||||||
@$(BASH_SHELL) -O extglob -n $@
|
@$(BASH_SHELL) -O extglob -n $@
|
||||||
|
|
||||||
|
$(COMPLETION_IN): %: %.in Makefile
|
||||||
|
$(AM_V_at)$(RM) $@
|
||||||
|
$(AM_V_at)$(MKDIR_P) $(dir $@)
|
||||||
|
$(AM_V_GEN)$(edit) $(srcdir)/$@.in >$@
|
||||||
|
$(AM_V_at)chmod a-w $@
|
||||||
|
|
||||||
|
all-am: $(COMPLETION_IN)
|
||||||
|
|
||||||
makepkg: \
|
makepkg: \
|
||||||
$(srcdir)/makepkg.sh.in \
|
$(srcdir)/makepkg.sh.in \
|
||||||
$(srcdir)/makepkg-wrapper.sh.in \
|
$(srcdir)/makepkg-wrapper.sh.in \
|
||||||
@ -213,6 +229,16 @@ makepkg-wrapper: \
|
|||||||
$(AM_V_at)chmod +x,a-w $@
|
$(AM_V_at)chmod +x,a-w $@
|
||||||
$(AM_V_at)$(LN_S) makepkg-wrapper makepkg
|
$(AM_V_at)$(LN_S) makepkg-wrapper makepkg
|
||||||
|
|
||||||
|
install-data-local:
|
||||||
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
||||||
|
$(INSTALL_DATA) completion/bash_completion $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
|
||||||
|
$(MKDIR_P) $(DESTDIR)$(datarootdir)/zsh/site-functions/
|
||||||
|
$(INSTALL_DATA) completion/zsh_completion $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
$(RM) $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
|
||||||
|
$(RM) $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
cd $(DESTDIR)$(bindir) && \
|
cd $(DESTDIR)$(bindir) && \
|
||||||
$(RM) makepkg makepkg-wrapper
|
$(RM) makepkg makepkg-wrapper
|
||||||
@ -247,4 +273,5 @@ uninstall-hook:
|
|||||||
$(RM) -r $(DESTDIR)$(libmakepkgdir)/$$dir; \
|
$(RM) -r $(DESTDIR)$(libmakepkgdir)/$$dir; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# vim:set noet:
|
# vim:set noet:
|
||||||
|
2
scripts/completion/.gitignore
vendored
Normal file
2
scripts/completion/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bash_completion
|
||||||
|
zsh_completion
|
Loading…
Reference in New Issue
Block a user