Imported Upstream version 1.7.6
[platform/upstream/harfbuzz.git] / src / check-header-guards.sh
index 09c5ea8..b67640f 100755 (executable)
@@ -6,11 +6,11 @@ export LC_ALL
 test -z "$srcdir" && srcdir=.
 stat=0
 
-test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
+test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h' ! -name 'hb-gobject-structs.h'`
 test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
 
 for x in $HBHEADERS $HBSOURCES; do
-       test -f "$srcdir/$x" && x="$srcdir/$x"
+       test -f "$srcdir/$x" -a ! -f "$x" && x="$srcdir/$x"
        echo "$x" | grep -q '[^h]$' && continue;
        xx=`echo "$x" | sed 's@.*/@@'`
        tag=`echo "$xx" | tr 'a-z.-' 'A-Z_'`