mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 13:28:03 +02:00
[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:
parent
dc260f1c0b
commit
1ee675d6a0
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue