Boost logo

Boost-Build :

From: Rob Stewart (rob_stewart_lists_at_[hidden])
Date: 2005-09-04 12:29:47

>>Rene Rivera wrote:

PMFJI, but I tried replying to an earlier message and used the
wrong e-mail address, so I'm a little late to the party. Still,
maybe I can offer something.

>>>How about something like:
>>>rule READ ( file : first-and-last-line * : regexp ? )
>>> # file, path to file
>>> # first-and-last-line, range of lines to read, default ( 0 1 )
>>> # regexp, optional regex to apply to each line before it is returned
>>> #
>>> # returns: ( first-line-read last-line-read strings * )

Wouldn't something more along the *nix philosophy be good? That
is, if you can support pipelining, a set of smaller rules than
can be chained somehow would provide more flexibility.

Thus, you'd want rules like HEAD, TAIL, GREP, etc. Those might
be harder to manage from within jam rules, but they would afford
great flexibility and power.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at