2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Win32 fixes.

* new/property.jam (translate-paths): Use :T modifier to prevent slash
  direction changing.

* new/common.jam: Use RM variable instead to calling "rm" command.


[SVN r16210]
This commit is contained in:
Vladimir Prus
2002-11-12 07:47:05 +00:00
parent 9f44cad35c
commit c0356cb2cb
4 changed files with 30 additions and 6 deletions

View File

@@ -6,6 +6,18 @@
# Provides actions common to all toolsets, for as making directoies and
# removing files.
import os ;
import modules ;
if [ os.name ] = NT
{
modules.poke : RM : del /f ;
}
else
{
modules.poek : RM : rm ;
}
rule MkDir
{
# If dir exists, don't update it
@@ -58,7 +70,7 @@ actions MkDir1
actions piecemeal together existing Clean
{
rm $(>)
$(RM) $(>)
}
rule copy

View File

@@ -301,8 +301,8 @@ rule translate-paths ( properties * : path )
{
if path in [ feature.attributes $(p:G) ]
{
local t = [ path.root $(p:G=) $(path) ] ;
result += $(t:G=$(p:G)) ;
local t = [ path.root $(p:TG=) $(path) ] ;
result += $(t:TG=$(p:G)) ;
}
else
{

View File

@@ -301,8 +301,8 @@ rule translate-paths ( properties * : path )
{
if path in [ feature.attributes $(p:G) ]
{
local t = [ path.root $(p:G=) $(path) ] ;
result += $(t:G=$(p:G)) ;
local t = [ path.root $(p:TG=) $(path) ] ;
result += $(t:TG=$(p:G)) ;
}
else
{

View File

@@ -6,6 +6,18 @@
# Provides actions common to all toolsets, for as making directoies and
# removing files.
import os ;
import modules ;
if [ os.name ] = NT
{
modules.poke : RM : del /f ;
}
else
{
modules.poek : RM : rm ;
}
rule MkDir
{
# If dir exists, don't update it
@@ -58,7 +70,7 @@ actions MkDir1
actions piecemeal together existing Clean
{
rm $(>)
$(RM) $(>)
}
rule copy