• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.cc'`
11
12for x in $HBHEADERS; do
13	test -f "$srcdir/$x" -a ! -f "$x" && x="$srcdir/$x"
14	if ! grep -q HB_BEGIN_DECLS "$x" || ! grep -q HB_END_DECLS "$x"; then
15		echo "Ouch, file $x does not have HB_BEGIN_DECLS / HB_END_DECLS, but it should"
16		stat=1
17	fi
18done
19for x in $HBSOURCES; do
20	test -f "$srcdir/$x" -a ! -f "$x" && x="$srcdir/$x"
21	if grep -q HB_BEGIN_DECLS "$x" || grep -q HB_END_DECLS "$x"; then
22		echo "Ouch, file $x has HB_BEGIN_DECLS / HB_END_DECLS, but it shouldn't"
23		stat=1
24	fi
25done
26
27exit $stat
28