From 14b0b1a6f512aee25ace4eed1efc81d6fafbcaec Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 11 Oct 2008 19:02:37 +0000 Subject: [PATCH] Force using absolute paths when searching for stylesheets as recent DocBook XSL and xsltproc sources fail miserably at using locally rooted paths. [SVN r49287] --- src/tools/boostbook-config.jam | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tools/boostbook-config.jam b/src/tools/boostbook-config.jam index 9e8cf5c53..0b91705f4 100644 --- a/src/tools/boostbook-config.jam +++ b/src/tools/boostbook-config.jam @@ -21,9 +21,11 @@ if [ os.name ] = NT : "InstallRoot" ] ; } # Plausible locations. - docbook_xsl-path ?= [ GLOB "$(boost-dir)\\share" "\\Boost\\share" : docbook-xsl* ] ; - docbook_dtd-path ?= [ GLOB "$(boost-dir)\\share" "\\Boost\\share" : docbook-xml* ] ; - boostbook-path ?= [ GLOB "$(boost-dir)\\share" "\\Boost\\share" : boostbook* ] ; + local root = [ PWD ] ; + while $(root) != $(root:D) { root = $(root:D) ; } + docbook_xsl-path ?= [ GLOB "$(boost-dir)\\share" "$(root)Boost\\share" : docbook-xsl* ] ; + docbook_dtd-path ?= [ GLOB "$(boost-dir)\\share" "$(root)Boost\\share" : docbook-xml* ] ; + boostbook-path ?= [ GLOB "$(boost-dir)\\share" "$(root)Boost\\share" : boostbook* ] ; docbook_xsl-path = $(docbook_xsl-path[1]) ; docbook_dtd-path = $(docbook_dtd-path[1]) ;