diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-01-28 23:56:23 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-01-29 00:43:10 -0500 |
commit | 3f7d301786ce345cc4221f434bda6751e9b97ad1 (patch) | |
tree | 433bfa7216deb399cb218784ef9fceac593a670c /src/check-doc-syntax.sh | |
parent | 247e1011995b0241526262cc36eb34c7e5edd47c (diff) | |
download | cairo-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-x | src/check-doc-syntax.sh | 7 |
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'` |