Boost logo

Boost-Build :

Subject: Re: [Boost-build] glob-tree question
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-06-05 09:18:07


On 5/31/2015 5:50 AM, Rene Rivera wrote:
>
>
> On Fri, May 29, 2015 at 1:31 PM, Vladimir Prus <vladimir.prus_at_[hidden] <mailto:vladimir.prus_at_[hidden]>> wrote:
>
>
> Hi Rene,
>
> On 5/21/2015 5:35 PM, Rene Rivera wrote:
>
> Try just the project level versions of glob:
>
> headers = [ glob-tree $(SELF)/include/boost : *.hpp ] ;
>
> or
>
> headers = [ glob-tree-ex $(SELF)/include/boost : *.hpp ] ;
>
>
> Do we actually need "glob-tree-ex" - the name does not seem entirely
> clear to me?
>
>
> Well.. I have a use case for it. Being that I need to glob for sources in some arbitrary dir. And the regular
> glob-tree doesn't allow that (re: "errors.user-error The patterns to 'glob-tree' may not include directory"). So
> I wrote an "extended" version that doesn't have all the limitations and maps directly to the builtin "GLOB".

I don't doubt that you have a valid use case, what I'm pointing out that between 'glob-tree' and 'path.glob',
having yet another way to glob for stuff seems a tad confusing. Could not your usecases be expressed with
path.glob? Or you disagree that having glob-tree and glob-tree-ex is potentially confusing?

- Volodya


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