[cairo] check-headers.sh not working on OS X

Ian Osgood iano at quirkster.com
Sat Sep 30 11:22:15 PDT 2006


On Sep 30, 2006, at 10:33 AM, Ian Osgood wrote:

> Hi,
>
> I'm bringing cairo_xcb* up to date with the recent XCB "make-it- 
> look-like-cairo" Grand Renaming, but am running into a problem with  
> "make check".

Answering my own question, I think this patch fixes the problem:

diff --git a/src/check-headers.sh b/src/check-headers.sh
index 1e8d590..8f9a900 100755
--- a/src/check-headers.sh
+++ b/src/check-headers.sh
@@ -12,7 +12,7 @@ xargs grep -B 1 '^cairo_.*[   ]\+(' |
  awk '
  /^--$/ { context=""; public=0; next; }
  /:cairo_.*[    ]+\(/ { if (!public) {print context; print; print  
"--";} next; }
-/-cairo_public\>/ {public=1;}
+/-cairo_public/ {public=1;}
  { context=$0; }
  ' |
  sed 's/[.]h-/.h:/' |


Also, is it better style to use [[:blank:]] instead of [space-tab]?

Ian


More information about the cairo mailing list