diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2009-01-03 01:03:45 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2009-01-03 01:03:45 +0000 |
commit | 0e2179678f77fff7a4ecd99e6fda553566e91ed5 (patch) | |
tree | a0d05616215785a4d517475521fc9258e69d9d52 /docs/check.docs | |
parent | 00f93b05b70ef4e841608a4ddbd6db36474c6d1b (diff) | |
download | pango-0e2179678f77fff7a4ecd99e6fda553566e91ed5.tar.gz |
Bug 512662 – Update check.docs for pango-undeclared.txt
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
Bug 512662 – Update check.docs for pango-undeclared.txt
* docs/Makefile.am:
* docs/check.docs:
Sync to the version in cairo.
svn path=/trunk/; revision=2778
Diffstat (limited to 'docs/check.docs')
-rwxr-xr-x | docs/check.docs | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/docs/check.docs b/docs/check.docs index 986af6d8..2898fc58 100755 --- a/docs/check.docs +++ b/docs/check.docs @@ -11,33 +11,38 @@ if test -z "$DOC_MODULE"; then fi fi - -test -z "$srcdir" && srcdir=. -status=0 - -if ! test -f "$DOC_MODULE-undocumented.txt" -a -f "$DOC_MODULE-unused.txt"; then - echo At least one of "$DOC_MODULE-undocumented.txt" and "$DOC_MODULE-unused.txt" not found. - echo Skipping test. - exit 0 +if test -n "$REPORT_FILES"; then + $MAKE $REPORT_FILES || exit 1 fi -status=0 +test -z "$srcdir" && srcdir=. +stat=0 +if test -f "$DOC_MODULE-undeclared.txt"; then + undeclared=`cat "$DOC_MODULE-undeclared.txt"` + if test -n "$undeclared"; then + echo Undeclared documentation symbols: 1>&2 + cat "$DOC_MODULE-undeclared.txt" 1>&2 + stat=1 + fi +fi >&2 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 + stat=1 fi -fi +fi >&2 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 + if grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null && + grep '^0 not documented' "$DOC_MODULE-undocumented.txt" >/dev/null; then + : + else echo Incomplete or undocumented symbols: 1>&2 cat "$DOC_MODULE-undocumented.txt" 1>&2 - status=1 + stat=1 fi -fi +fi >&2 -exit $status +exit $stat |