2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-18 01:52:17 +00:00

Add "common.file-creation-command" rule, to help in testing.

[SVN r19238]
This commit is contained in:
Vladimir Prus
2003-07-21 05:17:57 +00:00
parent 59212913f9
commit e0265e2a6b
2 changed files with 34 additions and 0 deletions

View File

@@ -37,7 +37,24 @@ rule variable-setting-command ( variable value )
}
}
# Return a command which can create a file. If 'r' is result of invocation,
# then
# r foobar
# will create foobar with unspecified content. What happens if file already
# exists is unspecified.
rule file-creation-command ( )
{
if [ modules.peek : NT ]
{
return "echo. > " ;
}
else
{
return "touch " ;
}
}
rule MkDir
{
# If dir exists, don't update it

View File

@@ -37,7 +37,24 @@ rule variable-setting-command ( variable value )
}
}
# Return a command which can create a file. If 'r' is result of invocation,
# then
# r foobar
# will create foobar with unspecified content. What happens if file already
# exists is unspecified.
rule file-creation-command ( )
{
if [ modules.peek : NT ]
{
return "echo. > " ;
}
else
{
return "touch " ;
}
}
rule MkDir
{
# If dir exists, don't update it