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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user