2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22: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 f4826cf9ab
commit bf3602fa82
2 changed files with 36 additions and 0 deletions

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

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