Boost logo

Boost-Build :

From: Joao Abecasis (jpabecasis_at_[hidden])
Date: 2005-08-31 20:05:47


Rene Rivera wrote:
> Joao Abecasis wrote:
>
>>Another way to state the problem is how to read the contents of a file
>>with current bjam + Boost.Build2?
>>
>>Is there currently a way to do this?
>>
>>Something grep-like...
>>
>>Handling the regular expressions and iterating over files (or even
>>finding them using GLOB) seems to be the easy part, what I'm really
>>missing is how to open those files and read their contents.
>>
>>Any pointers?
>
>
> I though someone had worked on a CAT builtin that would read in a file,
> but I don't see it now. One possibility is to use the SHELL builtin to
> run "cat [file]" (or whatever the platform equivalent is) to get the text.

I thought something like that could work, but I really wanted to go
platform independent on this.

> The other way is to do what the --help option does. It hijacks the
> header scanning to scan/read the *.jam files in. Take a look at
> v2/utils/doc.jam for how that's done.

I'll take a look and see what I can find. Thanks for the pointer!

> Of course a contribution of a "CAT" builtin would be ideal ;-) (I might
> do this myself next week if no one beats me to it.)

Hmm... I haven't adventured into bjam's source so far... I guess the
timing would be as good (or bad) as any. Anyway, I'll surely appreciate
if you beat me to it ;-p

Once again, thanks for the pointers!

João Abecasis

 


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