Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-02-26 08:02:35

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

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.

Dave Abrahams
Boost Consulting

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at