From e49f88c9efd10edaa0f31b0fd43dae93d19f9702 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 9 Nov 2006 14:41:18 +0000 Subject: Fixed the SKIP_FILTER command so that NetBSD's ksh can handle it as well. --- mk/check/check-headers.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mk/check/check-headers.sh') 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) -- cgit v1.2.3