Boost logo

Boost-Build :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-10-05 13:00:39


Johan Nilsson wrote:
> "Rene Rivera" <grafikrobot_at_[hidden]> skrev i meddelandet
> news:45251A43.8030003_at_gmail.com...
>> Johan Nilsson wrote:
>
> [snip]
>
>>> It looks like MATCH doesn't support multi-line mode. In the BJam docs it
>>> states that the MATCH regex should be an egrep pattern, and that doesn't
>>> include \n.
>> Well it does, or can be made to, in the always entertaining bjam way of
>> having flexible string values. This should work (famous last words):
>>
>> local xs = [ MATCH "([^
>> ]*)" : $(x) ] ;
>>
>
> I've already tried a variant of the "physical newline declaration" trick
> under Windows, but couldn't get it to work properly. Perhaps it is possible
> to make it work, but I gave up after a couple of attempts.

Seems to work for me...

====
C:\Documents and Settings\grafik>bjam -f -
nl = "
" ;
o = "one two three
" ;
xs = [ MATCH "([^
]*)" : $(o) ] ;
ECHO *$(xs)* ;
^Z
*one two three*
don't know how to make all
...found 1 target...
...can't find 1 target...

C:\Documents and Settings\grafik>
====

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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