On Wednesday 27 August 2003 04:16 am, Eric Friedman wrote:
> I have:
>
> #  xsltproc (from libxslt) configuration
> using xsltproc : C:\\Progra~1\\DocBook\\xsltproc.exe ;
>
> #  BoostBook configuration
> using boostbook : C:\\Progra~1\\DocBook\\docbook-xsl
>
>                 : C:\\Progra~1\\DocBook\\docbook-dtd
>
>                 ;

Looks perfectly fine to me.

> >     * Run bjam --v2 in $BOOST_ROOT/doc
>
> Yup, same here. Normally though, I don't actually have BOOST_ROOT
> defined as an environment variable. Is that required?

Unfortunately, yes. I've been meaning to eliminate that (undocumented!) 
requirement, but haven't gotten to it yet.

> > Actually, now that I think about it, aren't there problems
> > with using paths that have spaces in them? You might try
> > moving Boost to a path without spaces.
>
> Well I thought this was fixed after I posted to the boost-jam list. But
> anyhow to test, I shared my boost-cvs checkout and mapped the share to
> drive V:. This is what I get (more confusing than before):
>
> V:\doc>set BOOST_ROOT=v:\
>
> V:\doc>bjam --v2
> ...found 37 targets...
> ...updating 2 targets...
> xslt-xsltproc bin\gcc\debug\boost.docbook
> warning: failed to load external entity "file:///V:/docbook.xsl"
> cannot parse V:\docbook.xsl
>
>   set XML_CATALOG_FILES=catalog.xml
>   "C:\Progra~1\DocBook\xsltproc.exe"   --xinclude -o
> "bin\gcc\debug\boost.docbook"  "V:\docbook.xsl"  "src\boost.xml"

Looks like the paths are getting very, very mangled, and I see that I was 
handling paths very poorly in the BoostBook initialization. I just checked in 
a fix that I hope will fix the problem you're seeing. The diff is at the end 
for anyone without developer CVS access that doesn't want to wait 24 hours.
Remember to axe catalog.xml before running bjam when you first try this; I'm 
not sure the catalog.xml regeneration rules are correct yet.

> Thanks for your help,

Any time. I'm glad to see that you're using BoostBook for Variant :) As 
always, ping me if you find it lacking in some area. 

        Doug

Index: boostbook.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/tools/boostbook.jam,v
retrieving revision 1.12
diff -u -r1.12 boostbook.jam
--- boostbook.jam       23 Aug 2003 15:03:14 -0000      1.12
+++ boostbook.jam       28 Aug 2003 00:12:21 -0000
@@ -77,23 +77,20 @@
     {
       .docbook-dtd-dir = [ path.make $(docbook-dtd-dir) ] ;
     }
-
-    local boost-build-path = [ modules.peek : BOOST_BUILD_PATH ] ;
-    local boost-root = [ modules.peek : BOOST_ROOT ] ;
-    local search-dirs = $(boost-root)/tools/boostbook 
$(boost-build-path)/../boostbook ;
-    local boostbook-xsl-dir = [ GLOB $(search-dirs) : xsl ] ;
-    local boostbook-dtd-dir = [ GLOB $(search-dirs) : dtd ] ;
+
+    local boost-root = [ path.make [ modules.peek : BOOST_ROOT ] ] ;
+    local search-dirs = [ path.join $(boost-root) tools boostbook ] ;
+    local boostbook-xsl-dir = [ GLOB [ path.native $(search-dirs) ] : xsl ] ;
+    local boostbook-dtd-dir = [ GLOB [ path.native $(search-dirs) ] : dtd ] ;
     .boostbook-xsl-dir = [ path.make $(boostbook-xsl-dir[1]) ] ;
     .boostbook-dtd-dir = [ path.make $(boostbook-dtd-dir[1]) ] ;
-
     if ! $(.boostbook-xsl-dir) || ! $(.boostbook-dtd-dir)
     {
         errors.error
           couldn't find BoostBook xsl/ or dtd/ directories;
         : please set \"BOOST_ROOT\" variable to the root directory of
         your boost installation.  Searched in:
-          : $(search-dirs:J="
-") ;
+          : $(search-dirs:J="") ;
     }
     # Add trailing slash since some other code
     # uses :B modifier to add last element, and fails



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Boost-docs mailing list
[EMAIL PROTECTED]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to