/usr/share/boost-build/src/tools
NameSizeModeActions
doxygen/-0755rm
features/-0755rm
generators/-0755rm
types/-0755rm
xsltproc/-0755rm
acc.jam48000644editdlrm
asciidoctor.jam64800644editdlrm
auto-index.jam83240644editdlrm
bison.jam5890644editdlrm
boostbook-config.jam3890644editdlrm
boostbook.jam240560644editdlrm
borland.jam99920644editdlrm
builtin.jam30370644editdlrm
bzip2.jam80660644editdlrm
cast.jam32370644editdlrm
clang-darwin.jam67130644editdlrm
clang-linux.jam99840644editdlrm
clang-vxworks.jam40260644editdlrm
clang-win.jam60940644editdlrm
clang.jam23100644editdlrm
common.jam316790644editdlrm
como-linux.jam35280644editdlrm
como-win.jam42370644editdlrm
como.jam20630644editdlrm
convert.jam19870644editdlrm
cray.jam411280644editdlrm
cw-config.jam12830644editdlrm
cw.jam95490644editdlrm
cygwin.jam4030644editdlrm
darwin.jam221650644editdlrm
diab.jam43070644editdlrm
dmc.jam60940644editdlrm
docutils.jam34440644editdlrm
doxproc.py366210644editdlrm
doxygen-config.jam3880644editdlrm
doxygen.jam247450644editdlrm
embarcadero.jam214870644editdlrm
emscripten.jam37790644editdlrm
flags.jam45700644editdlrm
fop.jam16930644editdlrm
fortran.jam19890644editdlrm
gcc.jam552880644editdlrm
generate.jam33390644editdlrm
gettext.jam76630644editdlrm
gfortran.jam10080644editdlrm
hpfortran.jam9020644editdlrm
hp_cxx.jam80890644editdlrm
ifort.jam14950644editdlrm
intel-darwin.jam97850644editdlrm
intel-linux.jam91930644editdlrm
intel-vxworks.jam70850644editdlrm
intel-win.jam163960644editdlrm
intel.jam26260644editdlrm
lex.jam5590644editdlrm
libjpeg.jam73620644editdlrm
libpng.jam71040644editdlrm
libtiff.jam72080644editdlrm
link.jam150210644editdlrm
lzma.jam32770644editdlrm
make.jam22660644editdlrm
mc.jam13110644editdlrm
message.jam16670644editdlrm
midl.jam53670644editdlrm
mipspro.jam52910644editdlrm
mpi.jam218260644editdlrm
msvc-config.jam3930644editdlrm
msvc.jam846720644editdlrm
notfile.jam16540644editdlrm
openssl.jam36130644editdlrm
package.jam92810644editdlrm
pathscale.jam66290644editdlrm
pch.jam27190644editdlrm
pgi.jam48790644editdlrm
pkg-config.jam134430644editdlrm
python-config.jam8360644editdlrm
python.jam436790644editdlrm
qcc.jam108360644editdlrm
qt.jam5300644editdlrm
qt3.jam68100644editdlrm
qt4.jam239740644editdlrm
qt5.jam265170644editdlrm
quickbook-config.jam12660644editdlrm
quickbook.jam132770644editdlrm
rc.jam53640644editdlrm
sass.jam57020644editdlrm
saxonhe.jam13290644editdlrm
stage.jam285130644editdlrm
stlport.jam118800644editdlrm
sun.jam80540644editdlrm
symlink.jam43510644editdlrm
testing-aux.jam102380644editdlrm
testing.jam278890644editdlrm
unix.jam58470644editdlrm
vacpp.jam57250644editdlrm
vmsdecc.jam201850644editdlrm
whale.jam32530644editdlrm
xlcpp.jam61210644editdlrm
xlf.jam9000644editdlrm
xsltproc-config.jam8380644editdlrm
xsltproc.jam56030644editdlrm
zlib.jam69760644editdlrm
zstd.jam24460644editdlrm
Edit: /usr/share/boost-build/src/tools/xsltproc.jam (5603B)
# Copyright (C) 2003 Doug Gregor. Permission to copy, use, modify, sell and # distribute this software is granted provided this copyright notice appears in # all copies. This software is provided "as is" without express or implied # warranty, and with no claim as to its suitability for any purpose. # This module defines rules to apply an XSLT stylesheet to an XML file using the # xsltproc driver, part of libxslt. import "class" : new ; import common ; import feature ; import generators ; import modules ; import os ; import path ; import regex ; import sequence ; import toolset ; import virtual-target ; feature.feature "xsl:param" : : free ; feature.feature "xsl:path" : : free ; feature.feature catalog : : free ; # Initialize xsltproc support. The parameters are: # xsltproc: The xsltproc executable # rule init ( xsltproc ? ) { if $(xsltproc) { modify-config ; .xsltproc = $(xsltproc) ; check-xsltproc ; } } rule freeze-config ( ) { if ! $(.config-frozen) { .config-frozen = true ; .xsltproc ?= [ modules.peek : XSLTPROC ] ; .xsltproc ?= xsltproc ; check-xsltproc ; .is-cygwin = [ .is-cygwin $(.xsltproc) ] ; } } rule modify-config ( ) { if $(.config-frozen) { import errors ; errors.user-error "xsltproc: Cannot change xsltproc command after it has been used." ; } } rule check-xsltproc ( ) { if $(.xsltproc) { local status = [ SHELL "\"$(.xsltproc)\" -V" : no-output : exit-status ] ; if $(status[2]) != 0 { import errors ; errors.user-error "xsltproc: Could not run \"$(.xsltproc)\" -V." ; } } } rule name ( ) { freeze-config ; return $(.xsltproc) ; } # Returns a non-empty string if a cygwin xsltproc binary was specified. # rule is-cygwin ( ) { freeze-config ; return $(.is-cygwin) ; } rule .is-cygwin ( xsltproc ) { if [ os.on-windows ] { local file = [ path.make [ modules.binding $(__name__) ] ] ; local dir = [ path.native [ path.join [ path.parent $(file) ] xsltproc ] ] ; if [ os.name ] = CYGWIN { dir = $(dir:W) ; } local command = "\"$(xsltproc)\" \"$(dir)\\test.xsl\" \"$(dir)\\test.xml\" 2>&1" ; local status = [ SHELL $(command) : no-output : exit-status ] ; if $(status[2]) != "0" { return true ; } } } class xsltproc-action : action { rule adjust-properties ( property-set ) { local s = [ $(self.targets[1]).creating-subvariant ] ; if $(s) { return [ $(property-set).add-raw [ $(s).implicit-includes "xsl:path" : XML ] ] ; } else { return $(property-set) ; } } } class xsltproc-generator : generator { rule action-class ( ) { return xsltproc-action ; } } rule register-generator ( id : source-types + : target-types + : requirements * ) { if ! $(id) in $(.known-rules) { .known-rules += $(id) ; flags $(id) ; } generators.register [ new xsltproc-generator $(id) : $(source-types) : $(target-types) : $(requirements) ] ; } IMPORT xsltproc : register-generator : : generators.register-xslt ; rule flags ( rulename ) { toolset.uses-features $(rulename) : : unchecked ; toolset.flags $(rulename) XSL-PATH : : unchecked ; toolset.flags $(rulename) FLAGS : : unchecked ; } rule compute-xslt-flags ( target : properties * ) { local flags ; # Translate into command line flags. for local param in [ feature.get-values : $(properties) ] { local namevalue = [ regex.split $(param) "=" ] ; flags += --stringparam $(namevalue[1]) \"$(namevalue[2])\" ; } return $(flags) ; } local rule .xsltproc ( target : source stylesheet : properties * : dirname ? : action ) { freeze-config ; STYLESHEET on $(target) = $(stylesheet) ; FLAGS on $(target) += [ compute-xslt-flags $(target) : $(properties) ] ; NAME on $(target) = $(.xsltproc) ; for local catalog in [ feature.get-values : $(properties) ] { CATALOG = [ common.variable-setting-command XML_CATALOG_FILES : $(catalog:T) ] ; } if [ os.on-windows ] && ! [ is-cygwin ] { action = $(action).windows ; } $(action) $(target) : $(source) ; } rule xslt ( target : source stylesheet : properties * ) { return [ .xsltproc $(target) : $(source) $(stylesheet) : $(properties) : : xslt-xsltproc ] ; } rule xslt-dir ( target : source stylesheet : properties * : dirname ) { return [ .xsltproc $(target) : $(source) $(stylesheet) : $(properties) : $(dirname) : xslt-xsltproc-dir ] ; } _ = " " ; actions xslt-xsltproc.windows { $(CATALOG) "$(NAME:E=xsltproc)" $(FLAGS) --path$(_)"$(XSL-PATH:W)" --xinclude -o "$(<)" "$(STYLESHEET:W)" "$(>:W)" } actions xslt-xsltproc bind STYLESHEET { $(CATALOG) "$(NAME:E=xsltproc)" $(FLAGS) --path$(_)"$(XSL-PATH:T)" --xinclude -o "$(<)" "$(STYLESHEET:T)" "$(>:T)" } actions xslt-xsltproc-dir.windows bind STYLESHEET { $(CATALOG) "$(NAME:E=xsltproc)" $(FLAGS) --path$(_)"$(XSL-PATH:W)" --xinclude -o "$(<:D)/" "$(STYLESHEET:W)" "$(>:W)" } actions xslt-xsltproc-dir bind STYLESHEET { $(CATALOG) "$(NAME:E=xsltproc)" $(FLAGS) --path$(_)"$(XSL-PATH:T)" --xinclude -o "$(<:D)/" "$(STYLESHEET:T)" "$(>:T)" }