diff options
author | Elan Ruusamäe | 2009-11-09 12:51:58 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 24a46c20d2835224df4797075364c78dca46e69c (patch) | |
tree | 90f05e9fbb52bf3a543a721237bb4ac4b909d9bd | |
parent | 43cff819f71db1a061f84b58ff3ca6ee8931e8e0 (diff) | |
download | vim-syntax-lighttpd-24a46c20d2835224df4797075364c78dca46e69c.zip vim-syntax-lighttpd-24a46c20d2835224df4797075364c78dca46e69c.tar.gz |
- take srcdir from $1
Changed files:
syntax.sh -> 1.5
-rw-r--r-- | syntax.sh | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -5,9 +5,16 @@ # Maintainer: Elan Ruusamae <glen@pld-linux.org> # Last Change: $Date$ UTC +d=$1/src + +if [ $# = 0 -o ! -d "$d" ]; then + echo >&2 "${0#*/}: <lighttpd-src>" + exit 1 +fi + set -e -for a in configfile.c mod_*.c; do - [ "$a" = "mod_skeleton.c" ] && continue +for a in $d/configfile.c $d/mod_*.c; do + [[ "$a" = */mod_skeleton.c ]] && continue echo >&2 "# $a" cpp -DHAVE_LSTAT -E $a 2>/dev/null | sed -n ' /T_CONFIG_DEPRECATED/d |