Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-10-30 13:45:03


[2002-10-30] Vladimir Prus wrote:

>Rene Rivera wrote:
>> Update of /cvsroot/boost/boost/tools/build/new
>> In directory usw-pr-cvs1:/tmp/cvs-serv30325
>>
>> Modified Files:
>> project-root.jam
>> Log Message:
>> Add "path-constant" rule to declare/define constants which are used as
paths.
>
>Thanks a lot!
>
>> Index: project-root.jam
>
>> + switch $(type)
>> + {
>> + case path :
>> + if ! [ path.is-rooted $(value) ]
>> + {
>> + value = [ path.join [ regex.split
$(self.location)/$(value) "/" ] ] ;
>> + }
>> + }
>
>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.

-- 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