summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2009-11-09 12:51:58 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit24a46c20d2835224df4797075364c78dca46e69c (patch)
tree90f05e9fbb52bf3a543a721237bb4ac4b909d9bd
parent43cff819f71db1a061f84b58ff3ca6ee8931e8e0 (diff)
downloadvim-syntax-lighttpd-24a46c20d2835224df4797075364c78dca46e69c.zip
vim-syntax-lighttpd-24a46c20d2835224df4797075364c78dca46e69c.tar.gz
- take srcdir from $1
Changed files: syntax.sh -> 1.5
-rw-r--r--syntax.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/syntax.sh b/syntax.sh
index 62fbc8c..db9f935 100644
--- a/syntax.sh
+++ b/syntax.sh
@@ -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