6 test -z "$srcdir" && srcdir=.
9 test "x$HBHEADERS" = x && HBHEADERS=`find . -maxdepth 1 -name 'hb*.h'`
10 test "x$HBSOURCES" = x && HBSOURCES=`find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
16 echo 'Checking that public header files #include "hb-common.h" or "hb.h" first (or none)'
18 for x in $HBHEADERS; do
19 grep '#.*\<include\>' "$x" /dev/null | head -n 1
21 grep -v '"hb-common[.]h"' |
23 grep -v 'hb-common[.]h:' |
28 echo 'Checking that source files #include "hb-*private.hh" first (or none)'
30 for x in $HBSOURCES; do
31 grep '#.*\<include\>' "$x" /dev/null | head -n 1
33 grep -v '"hb-.*private[.]hh"' |
34 grep -v 'hb-private[.]hh:' |
38 echo 'Checking that there is no #include <hb.*.h>'
39 grep '#.*\<include\>.*<.*hb' $HBHEADERS $HBSOURCES >&2 && stat=1