summaryrefslogtreecommitdiff
path: root/src/check-headers.sh
diff options
context:
space:
mode:
authorThomas Klausner <wiz@danbala.tuwien.ac.at>2007-03-16 10:04:56 -0700
committerCarl Worth <cworth@cworth.org>2007-03-16 10:06:51 -0700
commit8236282c5d58320173b17659e488384e710d0ea7 (patch)
tree1579686a81af571462640ff1733b2ea6685ab528 /src/check-headers.sh
parent332c38b6c34bde4829607e534f39522f8001acf7 (diff)
Use "find !" rather than "find -not" for better portability
The man page for GNU find says: -not expr Same as ! expr, but not POSIX compliant. And actually, on e.g. NetBSD, "-not" is not supported. This resolved the following bug: https://bugs.freedesktop.org/show_bug.cgi?id=10226
Diffstat (limited to 'src/check-headers.sh')
-rwxr-xr-xsrc/check-headers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check-headers.sh b/src/check-headers.sh
index 91a52a015..1d0ebf816 100755
--- a/src/check-headers.sh
+++ b/src/check-headers.sh
@@ -7,7 +7,7 @@ status=0
echo Checking public headers for missing cairo_public decorators
-find "$srcdir" -name '*.h' -not -name '*-private.h' -not -name '*-test.h' -not -name 'cairoint.h' |
+find "$srcdir" -name '*.h' ! -name '*-private.h' ! -name '*-test.h' ! -name 'cairoint.h' |
xargs grep -B 1 '^cairo_.*[ ]\+(' |
awk '
/^--$/ { context=""; public=0; next; }