diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-09 09:51:46 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-09 09:51:46 +0000 |
commit | 9fa4a20ae3a002991930b653d6f7981c354cd2d8 (patch) | |
tree | dc6d5cbc3dfdfc68e8ddcce9f014fe7c43b762cf /mk/check | |
parent | ae8f1d1dbc8551aaa722949a2370d6124eed10aa (diff) | |
download | pkgsrc-9fa4a20ae3a002991930b653d6f7981c354cd2d8.tar.gz |
Made the code simpler.
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-headers.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mk/check/check-headers.sh b/mk/check/check-headers.sh index c965025d524..27281d87f59 100644 --- a/mk/check/check-headers.sh +++ b/mk/check/check-headers.sh @@ -1,4 +1,4 @@ -# $NetBSD: check-headers.sh,v 1.1 2006/11/09 02:53:15 rillig Exp $ +# $NetBSD: check-headers.sh,v 1.2 2006/11/09 09:51:46 rillig Exp $ # # This program checks the header files for possible problems. # @@ -32,17 +32,13 @@ find * -type f -print 2>/dev/null \ | { while read fname; do + eval "case \"\$fname\" in $SKIP_FILTER *.orig) continue;; esac" + case "$fname" in *.h | *.hpp | *.h++ | *.hxx) - ;; - *) - continue + check_header "$fname" ;; esac - - eval "case \"\$fname\" in $SKIP_FILTER *.orig) continue;; esac" - - check_header "$fname" done cs_exit } |