summaryrefslogtreecommitdiff
path: root/Build/source/libs/cairo/cairo-1.12.14/src/check-headers.sh
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-06-24 08:31:55 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-06-24 08:31:55 +0000
commit979f91be27c416b983cee7ad50e5fed2272e0336 (patch)
treecaa0d752edb4ad9c5e63ac61df26914010ca51c6 /Build/source/libs/cairo/cairo-1.12.14/src/check-headers.sh
parent98bd36b19e0aee9d8ef2d560d4fc32ed2036251b (diff)
cairo 1.12.14 with proxy build system, no more need for pkg-config
git-svn-id: svn://tug.org/texlive/trunk@30883 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/cairo/cairo-1.12.14/src/check-headers.sh')
-rwxr-xr-xBuild/source/libs/cairo/cairo-1.12.14/src/check-headers.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/Build/source/libs/cairo/cairo-1.12.14/src/check-headers.sh b/Build/source/libs/cairo/cairo-1.12.14/src/check-headers.sh
new file mode 100755
index 00000000000..61232954bae
--- /dev/null
+++ b/Build/source/libs/cairo/cairo-1.12.14/src/check-headers.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+echo Checking public headers for missing cairo_public decorators
+
+cd "$srcdir"
+FILES=$all_cairo_headers
+if test "x$FILES" = x; then
+ FILES=`find . -name 'cairo*.h' ! -name '*-private.h' ! -name 'cairoint.h'`
+fi
+
+grep -B 1 '^cairo_.*[ ]\+(' /dev/null $FILES |
+awk '
+/^--$/ { context=""; public=0; next; }
+/:cairo_.*[ ]+\(/ { if (!public) {print context; print; print "--";} next; }
+/-cairo_public.*[ ]/ {public=1;}
+{ context=$0; }
+' |
+sed 's/[.]h-/.h:/' |
+grep . >&2 && stat=1
+
+exit $stat