mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 14:25:21 -05:00
9efd10cd2a
vim recognises what type of shell script it's dealing with by looking at the shebang. If detection fails it falls back to sh which doesn't support some bash features. Adding a normal, possibly broken, shebang which gets fixed by the Makefile allows vim to detect bash syntax. Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
59 lines
1.1 KiB
Makefile
59 lines
1.1 KiB
Makefile
OURSCRIPTS = \
|
|
bacman \
|
|
pacdiff \
|
|
paclist \
|
|
pacscripts \
|
|
pacsearch
|
|
|
|
OURFILES = \
|
|
bash_completion \
|
|
zsh_completion
|
|
|
|
EXTRA_DIST = \
|
|
PKGBUILD.vim \
|
|
bacman.in \
|
|
bash_completion.in \
|
|
pacdiff.in \
|
|
paclist.in \
|
|
pacscripts.in \
|
|
pacsearch.in \
|
|
vimprojects \
|
|
zsh_completion.in \
|
|
README
|
|
|
|
# Files that should be removed, but which Automake does not know.
|
|
MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
|
|
|
|
edit = sed \
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
-e '1s|!/bin/bash|!$(BASH_SHELL)|g'
|
|
|
|
$(OURSCRIPTS): Makefile
|
|
@echo ' ' GEN $@;
|
|
@rm -f $@ $@.tmp
|
|
@$(edit) $(srcdir)/$@.in >$@.tmp
|
|
@chmod +x $@.tmp
|
|
@chmod a-w $@.tmp
|
|
@mv $@.tmp $@
|
|
|
|
$(OURFILES): Makefile
|
|
@echo ' ' GEN $@;
|
|
@rm -f $@ $@.tmp
|
|
@$(edit) $(srcdir)/$@.in >$@.tmp
|
|
@chmod a-w $@.tmp
|
|
@mv $@.tmp $@
|
|
|
|
all-am: $(OURSCRIPTS) $(OURFILES)
|
|
|
|
bacman: $(srcdir)/bacman.in
|
|
bash_completion: $(srcdir)/bash_completion.in
|
|
pacdiff: $(srcdir)/pacdiff.in
|
|
paclist: $(srcdir)/paclist.in
|
|
pacscripts: $(srcdir)/pacscripts.in
|
|
pacsearch: $(srcdir)/pacsearch.in
|
|
pactree: $(srcdir)/pactree.in
|
|
zsh_completion: $(srcdir)/zsh_completion.in
|
|
|
|
# vim:set ts=2 sw=2 noet:
|