summaryrefslogtreecommitdiff
path: root/mk/check/check-headers.sh
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-11-09 14:41:18 +0000
committerrillig <rillig@pkgsrc.org>2006-11-09 14:41:18 +0000
commite49f88c9efd10edaa0f31b0fd43dae93d19f9702 (patch)
tree94edf638acecff997f2e70cf7c12a7cc827ea455 /mk/check/check-headers.sh
parentffe459f4de4bf51af76d9a431a95d4e93f3265b0 (diff)
downloadpkgsrc-e49f88c9efd10edaa0f31b0fd43dae93d19f9702.tar.gz
Fixed the SKIP_FILTER command so that NetBSD's ksh can handle it as well.
Diffstat (limited to 'mk/check/check-headers.sh')
-rw-r--r--mk/check/check-headers.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/check/check-headers.sh b/mk/check/check-headers.sh
index db36345997d..d8dbb500764 100644
--- a/mk/check/check-headers.sh
+++ b/mk/check/check-headers.sh
@@ -1,4 +1,4 @@
-# $NetBSD: check-headers.sh,v 1.5 2006/11/09 10:52:21 rillig Exp $
+# $NetBSD: check-headers.sh,v 1.6 2006/11/09 14:41:18 rillig Exp $
#
# This program checks the header files for possible problems.
#
@@ -21,7 +21,7 @@ check_header() {
# Check for "${" in macro definitions.
case "$line" in
- "#define"*"\${"*)
+ "#define"*"\"\${"[a-z]*"}"*"\""*)
found_unresolved_variable=yes
cs_error_heading "Found unresolved variable in macro:"
cs_error_msg "$fname: $line"
@@ -35,7 +35,9 @@ find * -type f -print 2>/dev/null \
| {
while read fname; do
- eval "case \"\$fname\" in $SKIP_FILTER *.orig) continue;; esac"
+ skip=no
+ eval "case \"\$fname\" in $SKIP_FILTER *.orig) skip=yes;; esac"
+ [ $skip = no ] || continue
case "$fname" in
*.h | *.hpp | *.h++ | *.hxx)