summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-10-08 19:09:20 (GMT)
committerSteven Knight <knight@baldmt.com>2005-10-08 19:09:20 (GMT)
commitfe044c4f4dbc1ff12bec0d63e81b63a371e2750a (patch)
tree7bb79a34c349a17e2e369bc56bfb32f8058adca1 /doc
parent1642884379df556add67d1470baba0a7fe41e5ef (diff)
downloadSCons-fe044c4f4dbc1ff12bec0d63e81b63a371e2750a.zip
SCons-fe044c4f4dbc1ff12bec0d63e81b63a371e2750a.tar.gz
SCons-fe044c4f4dbc1ff12bec0d63e81b63a371e2750a.tar.bz2
Better document the "raw" option to env.subst() for people that want to preserve white space.
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.128
1 files changed, 22 insertions, 6 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index d8fe258..f39552e 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -4387,18 +4387,34 @@ Performs construction variable interpolation
on the specified string argument.
By default,
-any
+leading or trailing white space will
+be removed from the result.
+and all sequences of white space
+will be compressed to a single space character.
+Additionally, any
.B $(
and
.B $)
-will be stripped from the returned string.
+character sequences will be stripped from the returned string,
The optional
.I raw
-target may be set to
+argument may be set to
.B 1
-if you want to preserve these,
-although there is usually
-no reason to do this.
+if you want to preserve white space and
+.BR $( - $)
+sequences.
+The
+.I raw
+argument may be set to
+.B 2
+if you want to strip
+all characters between
+any
+.B $(
+and
+.B $)
+pairs
+(as is done for signature calculation).
The optional
.I target