Improve checks

This commit is contained in:
Behdad Esfahbod 2010-10-08 20:16:23 -04:00
parent 5a2b0b3878
commit f5dd3be46b
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ stat=0
cd "$srcdir"
for x in *.c *.cc *.h *.hh ; do
for x in hb-*.c hb-*.cc hb-*.h hb-*.hh ; do
if ! grep -q HB_BEGIN_DECLS "$x" || ! grep -q HB_END_DECLS "$x"; then
echo "Ouch, file $x does not HB_BEGIN_DECLS / HB_END_DECLS"
stat=1

View File

@ -8,7 +8,7 @@ stat=0
cd "$srcdir"
for x in *.h *.hh ; do
for x in hb-*.h hb-*.hh ; do
tag=`echo "$x" | tr 'a-z.-' 'A-Z_'`
lines=`grep "\<$tag\>" "$x" | wc -l`
if test "x$lines" != x3; then