diff options
author | rillig <rillig> | 2006-11-09 09:51:46 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-11-09 09:51:46 +0000 |
commit | 4ad2107b89d8f1c45fbf98e9a29c08e505c05730 (patch) | |
tree | dc6d5cbc3dfdfc68e8ddcce9f014fe7c43b762cf /mk/check | |
parent | 2420ca4e1ec70f065d044c369a0951a771126732 (diff) | |
download | pkgsrc-4ad2107b89d8f1c45fbf98e9a29c08e505c05730.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 } |