mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
* new/common.jam (variable-setting-command): New rule.
[SVN r19027]
This commit is contained in:
@@ -20,6 +20,24 @@ else
|
||||
CP = cp ;
|
||||
}
|
||||
|
||||
nl = "
|
||||
" ;
|
||||
|
||||
# Returns the command needed to set shell variable on the
|
||||
# current platform.
|
||||
rule variable-setting-command ( variable value )
|
||||
{
|
||||
if [ modules.peek : NT ]
|
||||
{
|
||||
return "set $(variable)=$(value)$(nl)" ;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "$(variable)=$(value)" ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
rule MkDir
|
||||
{
|
||||
# If dir exists, don't update it
|
||||
|
||||
Reference in New Issue
Block a user