[cairo-commit] RELEASING src/check-headers.sh

Carl Worth cworth at kemper.freedesktop.org
Fri Mar 16 10:07:27 PDT 2007


 RELEASING            |    2 +-
 src/check-headers.sh |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree 8236282c5d58320173b17659e488384e710d0ea7 (from 332c38b6c34bde4829607e534f39522f8001acf7)
Author: Thomas Klausner <wiz at danbala.tuwien.ac.at>
Date:   Fri Mar 16 10:04:56 2007 -0700

    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

diff --git a/RELEASING b/RELEASING
index a116a81..adc4292 100644
--- a/RELEASING
+++ b/RELEASING
@@ -42,7 +42,7 @@ Here are the steps to follow to create a
 	the following command will show each patch that has changed a
 	public header file since the given version:
 
-		find src/ -name '*.h' -not -name '*-private.h' -not -name '*-test.h' -not -name 'cairoint.h' | \
+		find src/ -name '*.h' ! -name '*-private.h' ! -name '*-test.h' ! -name 'cairoint.h' | \
 		xargs git log -p X.Y.Z.. --
 
 4) Increment cairo_version_{minor|micro} and LT_{CURRENT|VERSION|AGE}
diff --git a/src/check-headers.sh b/src/check-headers.sh
index 91a52a0..1d0ebf8 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; }


More information about the cairo-commit mailing list