diff --git a/src/tools/common.jam b/src/tools/common.jam index 1c530af83..a1db840a5 100644 --- a/src/tools/common.jam +++ b/src/tools/common.jam @@ -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