[yelp-tools] yelp.m4: Basic check target, well-formedness test only
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] yelp.m4: Basic check target, well-formedness test only
- Date: Mon, 2 May 2011 00:54:15 +0000 (UTC)
commit 17a7985b7c05a82e379caac319cef7a9f298f180
Author: Shaun McCance <shaunm gnome org>
Date: Sun May 1 21:01:33 2011 -0400
yelp.m4: Basic check target, well-formedness test only
tools/yelp.m4 | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/tools/yelp.m4 b/tools/yelp.m4
index 474b0d8..49537a4 100644
--- a/tools/yelp.m4
+++ b/tools/yelp.m4
@@ -80,6 +80,24 @@ EXTRA_DIST ?=
EXTRA_DIST += $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_POFILES)
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(_HELP_LINGUAS),$(wildcard $(lc)/$(f))))
+.PHONY: check-help
+check: check-help
+check-help:
+ for lc in C $(_HELP_LINGUAS); do \
+ if test -d "$$lc"; \
+ then d=; \
+ xmlpath="$$lc"; \
+ else \
+ d="$(srcdir)/"; \
+ xmlpath="$$lc:$(srcdir)/$$lc"; \
+ fi; \
+ for page in $(HELP_FILES); do \
+ echo "xmllint --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
+ xmllint --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
+ done; \
+ done
+
+
.PHONY: install-help
install-data-am: $(if $(HELP_ID),install-help)
install-help:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]