Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-10-30 16:15:44


[2002-10-30] Vladimir Prus wrote:

>
>> >Rene, did you look at 'path.root' rule? With it, you can write
>this as:
>> >
>> > value = [ path.root $(value) $(self.location) ] ;
>>
>> I did... the difference is that the way I did it simplifies the
>path in
>> addition to rooting it. I thought about changing the path.root to
>do what I
>> did above but didn't know if that would break anything else.
>
>Well.. path.root calls path.join which should simplify too.
>Do you have an example where path.root won't do the right thing?

[ path.root sub1/sub2/.. . ]

produces: sub1/sub2/..

I would think it should procude: sub1

The problem is that path.join only reduces if the path is given to it in
parts.

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]

 


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