mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
22 lines
456 B
Plaintext
22 lines
456 B
Plaintext
# Copyright (c) 2005 Vladimir Prus.
|
|
#
|
|
# Use, modification and distribution is subject to the Boost Software
|
|
# License Version 1.0. (See accompanying file LICENSE_1_0.txt or
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
import modules ;
|
|
|
|
rule get ( name : default-value ? )
|
|
{
|
|
local m = [ MATCH --$(name)=(.*) : [ modules.peek : ARGV ] ] ;
|
|
if $(m)
|
|
{
|
|
return $(m[1]) ;
|
|
}
|
|
else
|
|
{
|
|
return $(default-value) ;
|
|
}
|
|
}
|
|
|