Boost logo

Boost-Build :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2003-08-17 09:36:40


Aleksey Gurtovoy wrote:
> OK, I added the tracing to the testing.jam/dump-test rule:
>
> local files = [ GLOB $(full-paths:D) : $(s:D=) ] ;
>
> if $(files)
> {
> ECHO "#files:" $(files) ;
> # make relative to the project root instead of "."
> local file = $(files[1]:R=$(SUBDIR_TOKENS:J=/)) ;
> ECHO "#file:" $(file) ;
>
> # try to undo absolute paths
> local source-file = [ relative-path $(file) ] ;
> ECHO "#souce-file:" $(source-file) ;
> source-files += [ relative-path $(file) ] ;
> }
>
> and here's what I get:
>
> #files: ..\libs\static_assert\static_assert_test_fail_8.cpp
> #file:
> libs/static_assert\..\libs\static_assert\static_assert_test_fail_8.cpp
> #souce-file: libs\libs\static_assert\static_assert_test_fail_8.cpp
> ^^^^^^^^^^
>
> I am not quite sure which of these steps is erroneous, but the result is
not
> what we need. Any further suggestions?

FWIW, here's how/why it worked with the old version:

#files: ..\libs\static_assert\static_assert_test_fail_8.cpp
#file: libsstatic_assert\..\libs\static_assert\static_assert_test_fail_8.cpp
#souce-file: libs\static_assert\static_assert_test_fail_8.cpp

Aleksey

 


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