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

Added a comment specifying several alternative implementations for the common.file-creation-command rule on Windows.

[SVN r51395]
This commit is contained in:
Jurko Gospodnetić
2009-02-22 17:34:25 +00:00
parent 16f13773ef
commit 58efd51dc4

View File

@@ -559,6 +559,23 @@ rule file-creation-command ( )
{
if [ os.name ] = NT
{
# A few alternative implementations on Windows:
#
# 'type NUL >> '
# That would construct an empty file instead of a file containing
# a space and an end-of-line marker but it would also not change
# the target's timestamp in case the file already exists.
#
# 'type NUL > '
# That would construct an empty file instead of a file containing
# a space and an end-of-line marker but it would also destroy an
# already existing file by overwriting it with an empty one.
#
# I guess the best solution would be to allow Boost Jam to define
# built-in functions such as 'create a file', 'touch a file' or 'copy a
# file' which could be used from inside action code. That would allow
# completely portable operations without this kind of kludge.
# (22.02.2009.) (Jurko)
return "echo. > " ;
}
else