summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-05-30 15:22:55 (GMT)
committerSteven Knight <knight@baldmt.com>2005-05-30 15:22:55 (GMT)
commit42505dc5f3cdfc53add5fae89f6e8f50c756ab84 (patch)
treef9bf8642f5d58132bcbdcf11b313d108e98db544 /doc
parent94d15c2a0746c42a1d4b7e8047498daab072e59e (diff)
downloadSCons-42505dc5f3cdfc53add5fae89f6e8f50c756ab84.zip
SCons-42505dc5f3cdfc53add5fae89f6e8f50c756ab84.tar.gz
SCons-42505dc5f3cdfc53add5fae89f6e8f50c756ab84.tar.bz2
Add a brief description of env.subst() to the man page. (Karol Pietrzak)
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.115
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 52655bf..5eae209 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -4190,7 +4190,20 @@ env.SourceCode(['f1.c', 'f2.c'], env.SCCS())
env.SourceCode('no_source.c', None)
.EE
'\"env.SourceCode('.', env.Subversion('file:///usr/local/Subversion'))
-'\"
+
+'\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+.TP
+.RI env.subst( string )
+Performs construction variable interpolation
+on the specified string argument.
+
+.ES
+print env.subst("The C compiler is: $CC")
+
+def compile(target, source, env):
+ sourceDir = env.subst("${SOURCE.srcdir}")
+.EE
+
'\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
'\".TP
'\".RI Subversion( repository ", " module )