summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-08-23 20:37:08 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-08-23 20:37:08 -0400
commit5a286420a2356d611929b700e5338ab4649d707f (patch)
tree2596551cdaedd706df20c2104d5c71886efc5c1c
parent8233aa66e9ae9bbc887a8004da8a7d692aabfa3b (diff)
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.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/docbook.am b/docbook.am
index 2ffb7e6..f53f670 100644
--- a/docbook.am
+++ b/docbook.am
@@ -42,7 +42,8 @@ XMLTO_XHTML_FLAGS = \
--stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css
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)