2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-26 19:12:10 +00:00
Files
test/doc/utf-boostbook.jam
Steven Watanabe 37aa46b518 Fix calculation of the module directory.
[SVN r81025]
2012-10-20 16:34:45 +00:00

49 lines
1.4 KiB
Plaintext

# Jamfile.v2
#
# Copyright (c) 2010
# Steven Watanabe
#
# Distributed Under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import xsltproc : xslt xslt-dir ;
import feature ;
import path ;
import toolset : using ;
import generators ;
feature.feature utf-boostbook : off on : propagated ;
.initialized = ;
.here = [ path.parent [ path.root
[ path.make [ modules.binding $(__name__) ] ]
[ path.pwd ] ] ] ;
rule init ( )
{
if ! $(initialized)
{
.initialized = true ;
using boostbook ;
generators.register-standard utf-boostbook.boostbook-to-docbook : XML : DOCBOOK : <utf-boostbook>on ;
generators.register-standard utf-boostbook.docbook-to-htmldir : DOCBOOK : HTMLDIR : <utf-boostbook>on ;
generators.override utf-boostbook.boostbook-to-docbook : boostbook.boostbook-to-docbook ;
generators.override utf-boostbook.docbook-to-htmldir : boostbook.docbook-to-htmldir ;
}
}
rule boostbook-to-docbook ( target : source : properties * )
{
local stylesheet = [ path.native $(.here)/src/xsl/docbook.xsl ] ;
xslt $(target) : $(source) $(stylesheet) : $(properties) ;
}
rule docbook-to-htmldir ( target : source : properties * )
{
local stylesheet = [ path.native $(.here)/src/xsl/html.xsl ] ;
xslt-dir $(target) : $(source) $(stylesheet) : $(properties) : html ;
}