summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-08-07 21:20:26 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-08-07 21:40:28 -0400
commit888135ef815766f0421438430ca40809e4f7e411 (patch)
treedfa7429cc526a83a173bd3228500184baab11167
parent5ba82aec6547513ea182cbc6cb95b472bbfb9dc5 (diff)
downloadxorg-lib-libXmu-888135ef815766f0421438430ca40809e4f7e411.tar.gz
docbook pdf: add xsl parameter to locate images
Unlike html, pdf/ps requires a full path name to find images, but only needs it to make an internal copy of it at build time. The image can later be removed and the image still shows up in the pdf doc. This allows us to use the absolute builddir. This parameter must not be used for html which loads the image from disk at user read time. The image is removed from builddir after build is done, and we do not know where the image will be installed by the distro. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--docbook.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/docbook.am b/docbook.am
index 2ffb7e6..4809ce3 100644
--- a/docbook.am
+++ b/docbook.am
@@ -41,8 +41,10 @@ XMLTO_XHTML_FLAGS = \
-x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl \
--stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css
+# Caution: img.src.path *must* not be used for html. Pdf copies the image.
XMLTO_FO_FLAGS = \
- -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
+ -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl \
+ --stringparam img.src.path=$(abs_builddir)/
endif HAVE_STYLESHEETS
shelf_DATA += $(docbook:.xml=.html)