[pacman-dev] [PATCH 2/3] makepkg: fix vim syntax highlighting
Florian Pritz
bluewind at xinu.at
Thu Jun 30 00:15:23 EDT 2011
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index c988554..b7246f1 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -1134,7 +1134,7 @@ create_package() {
>
> # check for changelog/install files
> for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
> - IFS='/' read -r orig dest <<< "$i"
> + IFS='/' read -r orig dest < <(printf '%s\n' "$i")
>
> if [[ -n ${!orig} ]]; then
> msg2 "$(gettext "Adding %s file...")" "$orig"
> --
> 1.7.6
I think adding set ft=bash to the modeline should be enough, but I can't test that right now.
More information about the pacman-dev
mailing list