summaryrefslogtreecommitdiff
path: root/docs/check.docs
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@src.gnome.org>2008-01-28 21:22:48 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-01-28 21:22:48 +0000
commitbfa586f860e47650541a45f0c11360a2da306bd3 (patch)
treed2030f56fb75759acb6d69a6fa9583f7b7171b02 /docs/check.docs
parent5372722c42f86258d61379815056c37adcbb182c (diff)
downloadpango-bfa586f860e47650541a45f0c11360a2da306bd3.tar.gz
Minor
svn path=/trunk/; revision=2558
Diffstat (limited to 'docs/check.docs')
-rwxr-xr-xdocs/check.docs24
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/check.docs b/docs/check.docs
index cdc31628..986af6d8 100755
--- a/docs/check.docs
+++ b/docs/check.docs
@@ -23,17 +23,21 @@ fi
status=0
-unused=`cat "$DOC_MODULE-unused.txt"`
-if test -n "$unused"; then
- echo Unused documentated symbols: 1>&2
- cat "$DOC_MODULE-unused.txt" 1>&2
- status=1
+if test -f "$DOC_MODULE-unused.txt"; then
+ unused=`cat "$DOC_MODULE-unused.txt"`
+ if test -n "$unused"; then
+ echo Unused documentated symbols: 1>&2
+ cat "$DOC_MODULE-unused.txt" 1>&2
+ status=1
+ fi
fi
-if ! grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null ||
- ! grep '^0 not documented' "$DOC_MODULE-undocumented.txt" >/dev/null; then
- echo Incomplete or undocumented symbols: 1>&2
- cat "$DOC_MODULE-undocumented.txt" 1>&2
- status=1
+if test -f "$DOC_MODULE-undocumented.txt"; then
+ if ! grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null ||
+ ! grep '^0 not documented' "$DOC_MODULE-undocumented.txt" >/dev/null; then
+ echo Incomplete or undocumented symbols: 1>&2
+ cat "$DOC_MODULE-undocumented.txt" 1>&2
+ status=1
+ fi
fi
exit $status