[src/check-doc/syntax.sh] Fix test for out-of-tree build

Now that our build system can compute a list of all cairo files,
we prefer to use that in the tests instead of running "find".
However, we were not switching to $(srcdir) so the test was not
finding source files in out-of-tree builds.  Noticed that from
the grep error in distcheck.
This commit is contained in:
Behdad Esfahbod 2008-09-18 15:55:23 -04:00
parent dc260f1c0b
commit 1ee675d6a0

View file

@ -14,12 +14,14 @@ stat=0
echo Checking documentation for incorrect syntax
cd "$srcdir"
# Note: this test is also run from doc/public/ to check the SGML files
if test "x$SGML_DOCS" = x; then
FILES=$all_cairo_files
if test "x$FILES" = x; then
FILES=`find "$srcdir" -name '*.h' -or -name '*.c' -or -name '*.cpp'`
FILES=`find . -name 'cairo*.h' -or -name 'cairo*.c' -or -name 'cairo*.cpp'`
fi
fi