1#!/bin/sh
2
3LC_ALL=C
4export LC_ALL
5
6test -z "$srcdir" && srcdir=.
7stat=0
8
9test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
10test "x$EGREP" = x && EGREP='grep -E'
11
12
13echo 'Checking that all public symbols are exported with HB_EXTERN'
14
15for x in $HBHEADERS; do
16	test -f "$srcdir/$x" -a ! -f "$x" && x="$srcdir/$x"
17	$EGREP -B1 -n '^hb_' /dev/null "$x" |
18	$EGREP -v '(^--|:hb_|-HB_EXTERN )' -A1
19done |
20grep . >&2 && stat=1
21
22exit $stat
23