/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/asciidoctor.jam (6480B)
#| Copyright 2017 Rene Rivera 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) |# #| tag::doc[] = Asciidoctor The asciidoctor tool converts the ascidoc documentation format to various backend formats for either viewing or further processing by documentation tools. This tool supports the baseline asciidoctor distribution (i.e. the Ruby based tool). |# # end::doc[] import common ; import feature ; import generators ; import toolset ; import "class" : new ; feature.feature asciidoctor : : implicit propagated symmetric ; #| tag::doc[] == Feature: `asciidoctor-attribute` Defines arbitrary asciidoctor attributes. The value of the feature should be specified with the CLI syntax for attributes. For example to use as a target requirement: ``` html example : example.adoc : idprefix=ex ; ``` This is a `free` feature and is not `propagated`. I.e. it applies only to the target it's specified on. |# # end::doc[] feature.subfeature asciidoctor : attribute : : free ; #| tag::doc[] == Feature: `asciidoctor-doctype` Specifies the `doctype` to use for generating the output format. Allowed `doctype` values are: `article`, `book`, `manpage`, and `inline`. |# # end::doc[] feature.subfeature asciidoctor : doctype : article book manpage inline : optional propagated ; #| tag::doc[] == Feature: `asciidoctor-backend` Specifies the `backend` to use to produce output from the source asciidoc. This feature is automatically applied to fit the build target type. For example, when specifying an `html` target for an `asciidoc` source: ``` html example : example.adoc ; ``` The target will by default acquire the `html5` requirement. The default for each target type are: * `html`: `html5` * `docbook`: `docbook45` * `man`: `manpage` * `pdf`: `pdf` To override the defaults you specify it as a requirement on the target: ``` docbook example : example.adoc : docbook5 ; ``` Allowed `backend` values are: `html5`, `docbook45`, `docbook5`, `pdf`. |# # end::doc[] feature.subfeature asciidoctor : backend : html5 docbook5 docbook45 manpage pdf : propagated symmetric composite ; #| tag::doc[] == Initialization To use the `asciidoctor` tool you need to declare it in a configuration file with the `using` rule. The initialization takes the following arguments: * `command`: The command, with any extra arguments, to execute. For example you could insert the following in your `user-config.jam`: ``` using asciidoctor : "/usr/local/bin/asciidoctor" ; ``` If no `command` is given it defaults to just `asciidoctor` with assumption that the `asciidoctor` is available in the search `PATH`. |# # end::doc[] rule init ( command * ) { if ! $(.initialized) { # Setup only if we were called via "using .. ;" .initialized = true ; # Register generators. for local target-type in HTML MANPAGE PDF DOCBOOK { generators.register [ new asciidoctor-generator asciidoctor.convert : ASCIIDOC : $(target-type) ] ; } # Seriously bad kludge to prevent docbook generators from being # considered when we are generating html directly. # TODO: Design and implement a mechanism to resolve generator conflicts. generators.override asciidoctor.convert : boostbook.docbook-to-onehtml ; } # The command.. Default is bare asciidoctor. command ?= asciidoctor ; # We attempt to resolve each component of the command to account for # script interpreter wrappers. ASCIIDOCTOR = ; for local c in $(command) { local t = [ common.find-tool $(c) ] ; t ?= $(c) ; ASCIIDOCTOR += $(t) ; } } class asciidoctor-generator : generator { import property-set ; rule run ( project name ? : property-set : sources + ) { # ECHO *** asciidoctor-generator.run $(project) $(name) :: [ $(property-set).raw ] :: $(sources) ; # We set a default backend based on the target type. local backend = [ $(property-set).get ] ; # For now, we only accept a single adoc source. if ( ! $(sources[2]) ) && ( [ $(sources[1]).type ] = ASCIIDOC ) { # If no output name is specified, guess it from sources. # NOTE: For some reason the "?=" conditional assign op doesn't # work here. It assigns the value regardless, so work around it. # TODO: Look into why that happens. if ! $(name) { name = [ generator.determine-output-name $(sources) ] ; } # Depending on the kind of target we set up the backend, and # and any other options. if ! $(backend) { switch [ $(property-set).get ] { case HTML : backend = html5 ; case DOCBOOK : backend = docbook45 ; case MANPAGE : backend = manpage ; case PDF : backend = pdf ; } } } # We build a reduced property set so that we are not toolset dependent. local raw-set = $(backend) ; for local p in [ $(property-set).raw ] { if $(p:G) in { raw-set += $(p) ; } } raw-set = [ feature.expand-composites $(raw-set) ] ; raw-set += [ $(property-set).incidental ] ; property-set = [ property-set.create $(raw-set) ] ; return [ generator.run $(project) $(name) : $(property-set) : $(sources) ] ; } } _ = " " ; toolset.flags asciidoctor ATTRIBUTE : ; toolset.flags asciidoctor DOCTYPE : ; toolset.flags asciidoctor BACKEND : ; toolset.flags asciidoctor FLAGS : ; feature.compose pdf : "-r asciidoctor-pdf" ; actions convert { "$(ASCIIDOCTOR)" -o$(_)"$(<:D=)" -D$(_)"$(<:D)" -b$(_)"$(BACKEND)" -a$(_)"$(ATTRIBUTE)" -d$(_)"$(DOCTYPE)" $(FLAGS) "$(>)" }