summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-03 01:03:45 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-03 01:03:45 +0000
commit0e2179678f77fff7a4ecd99e6fda553566e91ed5 (patch)
treea0d05616215785a4d517475521fc9258e69d9d52 /docs
parent00f93b05b70ef4e841608a4ddbd6db36474c6d1b (diff)
downloadpango-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')
-rw-r--r--docs/Makefile.am4
-rwxr-xr-xdocs/check.docs37
2 files changed, 25 insertions, 16 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index b07e206b..6cdba24f 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -95,6 +95,9 @@ endif
include $(top_srcdir)/gtk-doc.make
+# This line really belongs in gtk-doc.mk
+$(REPORT_FILES): sgml-build.stamp
+
########################################################################
man_MANS = pango-querymodules.1
@@ -146,3 +149,4 @@ endif
.PHONY: dist-local-check-no-cross-references
TESTS = check.docs
+TESTS_ENVIRONMENT = srcdir="$(srcdir)" top_srcdir="$(top_srcdir)" MAKE="$(MAKE) $(AM_MAKEFLAGS)" DOC_MODULE="$(DOC_MODULE)" REPORT_FILES="$(REPORT_FILES)"
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