2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00
Files
build/new-split.jam
Dave Abrahams ecf138e926 Added temporarily
[SVN r11419]
2001-10-23 00:42:48 +00:00

22 lines
425 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) ;
}