[passepartout] even more tests (and make distcheck conformance)
- From: Sven Herzberg <herzi src gnome org>
- To: svn-commits-list gnome org
- Subject: [passepartout] even more tests (and make distcheck conformance)
- Date: Fri, 24 Apr 2009 03:37:06 -0400 (EDT)
commit 85902f2cbc8e96599841e0d3958b721df56f977e
Author: Sven Herzberg <herzi lanedo com>
Date: Mon Apr 13 18:49:41 2009 +0200
even more tests (and make distcheck conformance)
* configure.ac: check for xmllint
* doc/Makefile.am: check the validity of the xml documents with xmllint
---
configure.ac | 10 ++++++++++
doc/Makefile.am | 15 ++++++++++++---
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index fd3d27c..a7ed4a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,6 +115,16 @@ if test "${DESKTOP_FILE_VALIDATE}" = "no"; then
http://www.freedesktop.org/software/desktop-file-utils/releases/])
fi
+dnl -----------
+dnl | xml tests |
+dnl -----------
+
+AC_PATH_PROGS(XMLLINT,[xmllint],[no])
+if test "${XMLLINT}" = "no"; then
+ AC_MSG_ERROR([xmllint not fount, please install libxml2 from
+ http://xmlsoft.org/downloads.html])
+fi
+
dnl ---------------
dnl | documentation |
dnl ---------------
diff --git a/doc/Makefile.am b/doc/Makefile.am
index f75934f..0478cff 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -15,12 +15,19 @@ nodist_doc_DATA=\
dist_help_DATA=users_guide.xml
helpdir=$(datadir)/gnome/help/passepartout/C
+check-local:
+ @for docbook in $(dist_help_DATA) $(filter %.xml,$(dist_doc_DATA)); do \
+ echo "[TEST] $$docbook"; \
+ $(XMLLINT) --valid --noout $(srcdir)/$$docbook; \
+ done
+
omf_in_files=passepartout-C.omf.in
omf_DATA=$(omf_in_files:.in=)
omfdir=$(datadir)/omf/passepartout
passepartout-C.omf: passepartout-C.omf.in Makefile
- sed 's&@DATADIR@&$(datadir)&' $< > $@
+ @echo "[GEN] $@"
+ @sed 's&@DATADIR@&$(datadir)&' $< > $@
# Make symbolic links to the stylesheets:
# (Remove existing stylesheets first; the -f flag for ln is not portable.)
@@ -53,10 +60,12 @@ DOCBOOK2HTML = docbook2html.xslt
SUFFIXES=.txt .xml .html
.xml.txt:
- xsltproc -o $@ $(srcdir)/$(DOCBOOK2TXT) $<
+ @echo "[GEN] $@"
+ @xsltproc -o $@ $(srcdir)/$(DOCBOOK2TXT) $<
.xml.html:
- xsltproc -o $@ $(srcdir)/$(DOCBOOK2HTML) $<
+ @echo "[GEN] $@"
+ @xsltproc -o $@ $(srcdir)/$(DOCBOOK2HTML) $<
EXTRA_DIST=$(man_MANS) $(DOCBOOK2TXT) $(DOCBOOK2HTML) $(omf_in_files)
CLEANFILES=$(omf_DATA) $(nodist_doc_DATA)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]