6 test -z "$srcdir" && srcdir=.
9 test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h' ! -name 'hb-gobject-structs.h'`
10 test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
12 for x in $HBHEADERS $HBSOURCES; do
13 test -f "$srcdir/$x" -a ! -f "$x" && x="$srcdir/$x"
14 echo "$x" | grep -q '[^h]$' && continue;
15 xx=`echo "$x" | sed 's@.*/@@'`
16 tag=`echo "$xx" | tr 'a-z.-' 'A-Z_'`
17 lines=`grep -w "$tag" "$x" | wc -l | sed 's/[ ]*//g'`
18 if test "x$lines" != x3; then
19 echo "Ouch, header file $x does not have correct preprocessor guards"