gfx/harfbuzz/src/check-c-linkage-decls.sh

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rwxr-xr-x

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 #!/bin/sh
     3 LC_ALL=C
     4 export LC_ALL
     6 test -z "$srcdir" && srcdir=.
     7 stat=0
     9 test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
    10 test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
    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
    28 exit $stat

mercurial