2
0
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:
Vladimir Prus
2003-07-10 14:07:16 +00:00
parent d3bed59788
commit 334c96ac07

View File

@@ -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