Ah! found it ‘egrep’

 

Never mind

 

From: Kuhl, Brian
Sent: April-28-16 10:13 PM
To: Boost.Build developer's and user's list (boost-build@lists.boost.org)
Subject: What flavour of regex does MATCH use? Or how do I remap paths?

 

I’m trying to create a rule to assist remapping  LD_LIBRARY_PATH from the build host to the VxWorks target system.

For example:

/opt/vx7/workspace/VsbSim32/usr/src/BOOST/boost_1_59_0/bin.v2/libs/flyweight/test/gcc-4.8.1/debug/cross-compile-vxworks

..might become ..

bkuhlfedora:/VsbSim32/usr/src/BOOST/boost_1_59_0/bin.v2/libs/flyweight/test/gcc-4.8.1/debug/cross-compile-vxworks

 

But I’m not getting anything from the MATCH rule?

 

rule native-VXWORKS ( path )

{

    local result = $(path) ;

    if [ regex.match "(^/?(.*))" : $(path)  ]   # absolute path.

    {

        result = [ sequence.join [ os.environ LAYER_SRC_PATH ] / [ MATCH "(?=bin\.v2).*" : $(path) ] ] ;

    }

    return $(result) ;

}

 

Brian Kuhl

Wind River