[cairo-commit] 2 commits - src/check-doc-syntax.sh
Chris Wilson
ickle at kemper.freedesktop.org
Sun Apr 29 11:30:07 PDT 2012
src/check-doc-syntax.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
New commits:
commit ed90616b7757087154d1c191858444ecc9188935
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Apr 29 13:21:36 2012 +0100
check-doc-syntax: Only parse the source files for incorrect tags
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/check-doc-syntax.sh b/src/check-doc-syntax.sh
index e566a6e..bfda7a2 100755
--- a/src/check-doc-syntax.sh
+++ b/src/check-doc-syntax.sh
@@ -70,10 +70,13 @@ if echo $FILES | xargs grep "$note_regexp" /dev/null; then
echo Be civil and replace it by 'Note' please.
fi >&2
-if echo $FILES | xargs ./check-doc-syntax.awk ; then
- :
-else
- stat=1
-fi >&2
+# Only run the syntax checker on the source files (not doc/)
+if -e ./check-doc-syntax.awk; then
+ if echo $FILES | xargs ./check-doc-syntax.awk ; then
+ :
+ else
+ stat=1
+ fi >&2
+fi
exit $stat
commit c16cdf0b4e2bada9b955111886eb7c9cb3878994
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Apr 29 13:18:43 2012 +0100
check-doc-syntax: Fix handling of return value in make check
diff --git a/src/check-doc-syntax.sh b/src/check-doc-syntax.sh
index 570b9d9..e566a6e 100755
--- a/src/check-doc-syntax.sh
+++ b/src/check-doc-syntax.sh
@@ -71,6 +71,8 @@ if echo $FILES | xargs grep "$note_regexp" /dev/null; then
fi >&2
if echo $FILES | xargs ./check-doc-syntax.awk ; then
+ :
+else
stat=1
fi >&2
More information about the cairo-commit
mailing list