Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-02-26 10:24:38


[2003-02-26] David Abrahams wrote:

>Rene Rivera <grafik666_at_[hidden]> writes:
>
>>>2. Looking at
>>>
>>> local path-to-source = [ path.relative-to
>>> [ path.make [ on $(<) return $(LOCATE) ] ]
>>> [ path.make [ on $(>) return $(LOCATE) ] ] ] ;
>>>
>>>I'm not sure it will work when building from subdir. If
>>>$(>) is located at "../..", will path.relative-to work? I'll be offline
>>>for 2-4 hours now, but will try to really break this when I'm back ;-)
>>
>> It should... can't say I tested it ;-) But I can't see a problem...
>
>This is a perfect job for a __test__ rule in the path module
>(HINT HINT HINT).
>
>We should never add a simple rule like this without a battery of
>tests in the module. It's so easy, and it helps nail down the
>intended semantics.

Hint taken ;-) It was just getting late in the night and sleep took
precedence over more code. :-\

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

 


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