1 #!/bin/sh 2 3 LC_ALL=C 4 export LC_ALL 5 6 test -z "$srcdir" && srcdir=. 7 stat=0 8 9 test "x$HBHEADERS" = x && HBHEADERS=`find . -maxdepth 1 -name 'hb*.h'` 10 test "x$HBSOURCES" = x && HBSOURCES=`find . -maxdepth 1 -name 'hb*.h'` 11 12 13 for x in $HBHEADERS; do 14 test -f $srcdir/$x && x=$srcdir/$x 15 if ! grep -q HB_BEGIN_DECLS "$x" || ! grep -q HB_END_DECLS "$x"; then 16 echo "Ouch, file $x does not have HB_BEGIN_DECLS / HB_END_DECLS, but it should" 17 stat=1 18 fi 19 done 20 for x in $HBSOURCES; do 21 test -f $srcdir/$x && x=$srcdir/$x 22 if grep -q HB_BEGIN_DECLS "$x" || grep -q HB_END_DECLS "$x"; then 23 echo "Ouch, file $x has HB_BEGIN_DECLS / HB_END_DECLS, but it shouldn't" 24 stat=1 25 fi 26 done 27 28 exit $stat 29