summaryrefslogtreecommitdiff
path: root/src/check-doc-syntax.sh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-01-28 23:56:23 -0500
committerBehdad Esfahbod <behdad@behdad.org>2008-01-29 00:43:10 -0500
commit3f7d301786ce345cc4221f434bda6751e9b97ad1 (patch)
tree433bfa7216deb399cb218784ef9fceac593a670c /src/check-doc-syntax.sh
parent247e1011995b0241526262cc36eb34c7e5edd47c (diff)
downloadcairo-3f7d301786ce345cc4221f434bda6751e9b97ad1.tar.gz
[src/check-doc-syntax.sh] Skip test if GNU grep is not available
Diffstat (limited to 'src/check-doc-syntax.sh')
-rwxr-xr-xsrc/check-doc-syntax.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/check-doc-syntax.sh b/src/check-doc-syntax.sh
index 7b0908ff6..210ca4fd7 100755
--- a/src/check-doc-syntax.sh
+++ b/src/check-doc-syntax.sh
@@ -2,10 +2,15 @@
LANG=C
+if ! grep --version 2>/dev/null | grep GNU >/dev/null; then
+ echo "GNU grep not found; skipping test"
+ exit 0
+fi
+
test -z "$srcdir" && srcdir=.
status=0
-echo Checking documentation blocks for missing decorators
+echo Checking documentation for incorrect syntax
FILES=`find "$srcdir" -name '*.h' -or -name '*.c' -or -name '*.cpp'`