source:
downloads/boost_1_33_1/tools/build/v2/util/option.jam
@
12
Last change on this file since 12 was 12, checked in by landauf, 17 years ago | |
---|---|
File size: 456 bytes |
Line | |
---|---|
1 | # Copyright (c) 2005 Vladimir Prus. |
2 | # |
3 | # Use, modification and distribution is subject to the Boost Software |
4 | # License Version 1.0. (See accompanying file LICENSE_1_0.txt or |
5 | # http://www.boost.org/LICENSE_1_0.txt) |
6 | |
7 | import modules ; |
8 | |
9 | rule get ( name : default-value ? ) |
10 | { |
11 | local m = [ MATCH --$(name)=(.*) : [ modules.peek : ARGV ] ] ; |
12 | if $(m) |
13 | { |
14 | return $(m[1]) ; |
15 | } |
16 | else |
17 | { |
18 | return $(default-value) ; |
19 | } |
20 | } |
21 |
Note: See TracBrowser
for help on using the repository browser.