$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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