# 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 : on ; generators.register-standard utf-boostbook.docbook-to-htmldir : DOCBOOK : HTMLDIR : 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 ; }