From 9efd10cd2ac9a7654b2c7c94df86bf09ab54f41a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 30 Jun 2011 17:07:54 +0200 Subject: fix vim syntax highlighting of .sh files 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 Signed-off-by: Dan McGee --- contrib/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/Makefile.am') diff --git a/contrib/Makefile.am b/contrib/Makefile.am index e9f77940..cba2085c 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -27,7 +27,7 @@ MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp edit = sed \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ -e 's|@localstatedir[@]|$(localstatedir)|g' \ - -e 's|@BASH_SHELL[@]|$(BASH_SHELL)|g' + -e '1s|!/bin/bash|!$(BASH_SHELL)|g' $(OURSCRIPTS): Makefile @echo ' ' GEN $@; -- cgit v1.2.3-24-g4f1b