Fix documentation building on Linux
git-svn-id: http://pugixml.googlecode.com/svn/trunk@947 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
4e1add1a46
commit
ff14ae6daf
24
Jamrules.jam
24
Jamrules.jam
@ -836,14 +836,26 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $(OS) = NT )
|
||||||
|
{
|
||||||
|
QUICKBOOK = %QUICKBOOK_PATH%\bin\quickbook.exe ;
|
||||||
|
XSLTPROC = %QUICKBOOK_PATH%\bin\xsltproc.exe ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QUICKBOOK = quickbook ;
|
||||||
|
XSLTPROC = xsltproc ;
|
||||||
|
QUICKBOOK_PATH = /usr/share ;
|
||||||
|
}
|
||||||
|
|
||||||
actions QuickbookAction
|
actions QuickbookAction
|
||||||
{
|
{
|
||||||
%QUICKBOOK_PATH%\bin\quickbook.exe --output-file $(<) --input-file $(>) >nul
|
$(QUICKBOOK) --output-file $(<) --input-file $(>)
|
||||||
}
|
}
|
||||||
|
|
||||||
actions response XSLTProcAction
|
actions response XSLTProcAction
|
||||||
{
|
{
|
||||||
%QUICKBOOK_PATH%\bin\xsltproc.exe --path$(SPACE)$(XSLPATH:C) --stringparam$(SPACE)$(XSLPARAM) --output $(<) @(<?xml version="1.0"?>
|
$(XSLTPROC) --nonet --novalid --path$(SPACE)$(XSLPATH:C) --stringparam$(SPACE)$(XSLPARAM) --output $(<) @(<?xml version="1.0"?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
<xsl:import$(SPACE)href="file:///$(XSL:/)"$(SPACE)/>
|
<xsl:import$(SPACE)href="file:///$(XSL:/)"$(SPACE)/>
|
||||||
</xsl:stylesheet>) $(>)
|
</xsl:stylesheet>) $(>)
|
||||||
@ -974,12 +986,6 @@ rule QuickbookImport SOURCE : IMPORT
|
|||||||
Includes $(SOURCE) : $(SOURCE:D)/$(IMPORT) ;
|
Includes $(SOURCE) : $(SOURCE:D)/$(IMPORT) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
rule FullPath FILE
|
|
||||||
{
|
|
||||||
local PWD = [ Subst [ Shell "cd" ] : "%c" : "" ] ;
|
|
||||||
return "$(PWD)/$(FILE)" ;
|
|
||||||
}
|
|
||||||
|
|
||||||
rule Documentation TARGET : SOURCE : STYLESHEET
|
rule Documentation TARGET : SOURCE : STYLESHEET
|
||||||
{
|
{
|
||||||
# escape colon with %3A because colon is a path list separator
|
# escape colon with %3A because colon is a path list separator
|
||||||
@ -1007,7 +1013,7 @@ rule Documentation TARGET : SOURCE : STYLESHEET
|
|||||||
# docbook -> html
|
# docbook -> html
|
||||||
local HTML = $(TARGET) ;
|
local HTML = $(TARGET) ;
|
||||||
|
|
||||||
XSL on $(HTML) = $(QUICKBOOK_PATH)/boostbook/xsl/html.xsl [ FullPath $(STYLESHEET) ] ;
|
XSL on $(HTML) = $(QUICKBOOK_PATH)/boostbook/xsl/html.xsl $(CWD)/$(STYLESHEET) ;
|
||||||
XSLPATH on $(HTML) = $(XSLDIR)/docbook-xml $(XSLDIR)/docbook-xsl/html $(XSLDIR)/docbook-xsl/lib ;
|
XSLPATH on $(HTML) = $(XSLDIR)/docbook-xml $(XSLDIR)/docbook-xsl/html $(XSLDIR)/docbook-xsl/lib ;
|
||||||
|
|
||||||
XSLPARAM on $(HTML) =
|
XSLPARAM on $(HTML) =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user