mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Added missing jobs; marked others done. allyourbase.jam Fixed split and split-path for Unix boost-base.jam Fixed the Run action for Windows gcc-tools.jam intel-win32-tools.jam kcc-tools.jam metrowerks-tools.jam msvc-tools.jam Removed UNDEFS from link line, moved NEEDLIBS to end unit-tests.jam Added tests splitpath tests for rooted Unix paths jam_src/make1.c NOCARE targets with build actions now don't cause the parent to fail when they fail. build_system.htm Documented NOCARE enhancements [SVN r11463]
22 lines
426 B
Plaintext
22 lines
426 B
Plaintext
# temporary file to deal with the fact that the old jam can't parse the new
|
|
# constructs.
|
|
|
|
rule split ( string separator )
|
|
{
|
|
local result ;
|
|
local s = $(string) ;
|
|
|
|
while $(s)
|
|
{
|
|
local match = [ SUBST $(s) ^(.*)$(separator)(.*) $1 $2 ] ;
|
|
|
|
local tail = $(match[2]) ;
|
|
tail ?= $(s) ;
|
|
|
|
result = $(tail) $(result) ;
|
|
s = $(match[1]) ;
|
|
}
|
|
return $(result) ;
|
|
}
|
|
|