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 <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c2cce4f3f5
commit
9efd10cd2a
12 changed files with 12 additions and 12 deletions
|
@ -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 $@;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
#
|
||||
# bacman: recreate a package from a running system
|
||||
# This script rebuilds an already installed package using metadata
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
# pacdiff : a simple pacnew/pacorig/pacsave updater
|
||||
#
|
||||
# Copyright (c) 2007 Aaron Griffin <aaronmgriffin@gmail.com>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
#
|
||||
# pacscripts : tries to print out the {pre,post}_{install,remove,upgrade}
|
||||
# scripts of a given package
|
||||
|
|
|
@ -47,7 +47,7 @@ edit = sed \
|
|||
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
||||
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||
-e 's|@prefix[@]|$(prefix)|g' \
|
||||
-e 's|@BASH_SHELL[@]|$(BASH_SHELL)|g' \
|
||||
-e '1s|!/bin/bash|!$(BASH_SHELL)|g' \
|
||||
-e 's|@PACKAGE_VERSION[@]|$(REAL_PACKAGE_VERSION)|g' \
|
||||
-e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \
|
||||
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@ -e
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# makepkg - make packages compatible for use with pacman
|
||||
# @configure_input@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@ -e
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# pacman-db-upgrade - upgrade the local pacman db to a newer format
|
||||
# @configure_input@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@ -e
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# pacman-key - manages pacman's keyring
|
||||
# Based on apt-key, from Debian
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
#
|
||||
# pacman-optimize
|
||||
# @configure_input@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
#
|
||||
# pkgdelta - create delta files for use with pacman and repo-add
|
||||
# @configure_input@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
#
|
||||
# rankmirrors - read a list of mirrors from a file and rank them by speed
|
||||
# @configure_input@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!@BASH_SHELL@
|
||||
#!/bin/bash
|
||||
#
|
||||
# repo-add - add a package to a given repo database file
|
||||
# repo-remove - remove a package entry from a given repo database file
|
||||
|
|
Loading…
Add table
Reference in a new issue