2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-26 07:02:12 +00:00
Files
test/doc/utf-boostbook.jam
Steven Watanabe 0368507b5c Add source for Boost.Test docs
[SVN r62071]
2010-05-17 20:09:18 +00:00

47 lines
1.3 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.root [ path.make $(__file__:D) ] [ 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 ;
}