[PATCH xorg-docs 2/3] xmlrules.in: do not use --searchpath when sgml-doctools not installed

Gaetan Nadon memsize at videotron.ca
Fri Nov 5 18:22:23 PDT 2010


The option to define a searchpath for css and xsl files is not
required when such files are known to be missing.

The command emitted is:
/usr/bin/xmlto --searchpath /X11  xhtml-nochunks dps.xml

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 xmlrules.in |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/xmlrules.in b/xmlrules.in
index 1523a74..41abb1b 100644
--- a/xmlrules.in
+++ b/xmlrules.in
@@ -32,12 +32,10 @@ if HAVE_XMLTO_TEXT
 xml_DATA += $(doc_sources:.xml=.txt)
 endif
 
-# Path to find X11/defs.ent
-XMLTO_FLAGS = --searchpath $(XORG_SGML_PATH)/X11
-
 if HAVE_STYLESHEETS
-XMLTO_FLAGS +=								\
+XMLTO_FLAGS =								\
 	-m $(XSL_STYLESHEET)						\
+	--searchpath $(XORG_SGML_PATH)/X11				\
 	--stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css	\
 	--stringparam img.src.path=$(abs_builddir)/
 endif
-- 
1.6.0.4



More information about the xorg-devel mailing list