Boost logo

Boost-Build :

Subject: Re: [Boost-build] Generate txt file from b2
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-06-19 15:56:08


AMDG

On 06/18/2017 01:14 AM, Norbert Wenzel via Boost-build wrote:
>
> So is there some way to make b2 generate text files without resorting to
> external tools to make this trivially portable across platforms
> (assuming the same version of Boost.Build on all those platforms)?
>

Use the print module to define the action.

You can find an example here:
https://github.com/boostorg/build/blob/develop/src/tools/boostbook.jam#L531

It looks like the documentation doesn't show anything
about this, but there's some internal documentation
(accessible via `b2 --help print`). The rules you'll
need are print.output and print.text.

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk