Add stubs for Direct3D9 backend.
[cairo/gpu.git] / src / check-headers.sh
blobf01c24eb37cebe1ab1935ba565776630b1587dcf
1 #!/bin/sh
3 LANG=C
5 test -z "$srcdir" && srcdir=.
6 stat=0
8 echo Checking public headers for missing cairo_public decorators
10 cd "$srcdir"
11 FILES=$all_cairo_headers
12 if test "x$FILES" = x; then
13 FILES=`find . -name 'cairo*.h' ! -name '*-private.h' ! -name 'cairoint.h'`
16 grep -B 1 '^cairo_.*[ ]\+(' /dev/null $FILES |
17 awk '
18 /^--$/ { context=""; public=0; next; }
19 /:cairo_.*[ ]+\(/ { if (!public) {print context; print; print "--";} next; }
20 /-cairo_public.*[ ]/ {public=1;}
21 { context=$0; }
22 ' |
23 sed 's/[.]h-/.h:/' |
24 grep . >&2 && stat=1
26 exit $stat