2006-09-18 13:28:29 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
LANG=C
|
|
|
|
|
|
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
status=0
|
|
|
|
|
|
|
|
|
|
echo Checking public headers for missing cairo_public decorators
|
|
|
|
|
|
2008-01-28 23:26:35 -05:00
|
|
|
find "$srcdir" -name '*.h' ! -name '*-private.h' ! -name '*-test.h' ! -name 'cairoint.h' ! -name 'cairo-no-features.h' |
|
2006-09-18 13:28:29 -04:00
|
|
|
xargs grep -B 1 '^cairo_.*[ ]\+(' |
|
|
|
|
|
awk '
|
|
|
|
|
/^--$/ { context=""; public=0; next; }
|
|
|
|
|
/:cairo_.*[ ]+\(/ { if (!public) {print context; print; print "--";} next; }
|
2007-04-08 20:50:08 +01:00
|
|
|
/-cairo_public.*[ ]/ {public=1;}
|
2006-09-18 13:28:29 -04:00
|
|
|
{ context=$0; }
|
|
|
|
|
' |
|
|
|
|
|
sed 's/[.]h-/.h:/' |
|
|
|
|
|
grep . && status=1
|
|
|
|
|
|
|
|
|
|
exit $status
|