[libgdata] docs: Add an automake rule to check whether files are included in the docs



commit ab429e5518e39bd112dc3126571e751b8dd45bd4
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Aug 22 14:58:42 2010 +0100

    docs: Add an automake rule to check whether files are included in the docs

 docs/reference/Makefile.am |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 43f3258..00dea4f 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -112,4 +112,16 @@ TESTS_ENVIRONMENT = cd $(srcdir) &&
 TESTS = $(GTKDOC_CHECK)
 endif
 
+check-local: check-xml-includes
+check-xml-includes:
+	@any_missing=0; find $(srcdir) -name "*.xml" | while read x; do \
+		xml_file="$${x#./}"; \
+		if test "x$$xml_file" != "x$(DOC_MAIN_SGML_FILE)"; then \
+			if grep "\"$$xml_file\"" $(DOC_MAIN_SGML_FILE) >/dev/null; then :; else \
+				echo "$(DOC_MAIN_SGML_FILE) doesn't appear to include \"$$xml_file\""; \
+				any_missing=1; \
+			fi; \
+		fi; \
+	done; exit "$$any_missing"
+
 -include $(top_srcdir)/git.mk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]