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)
commitfe975c11ffad1cf7b2521425669ee9b3d909e5c0 (patch)
treef9bf8642f5d58132bcbdcf11b313d108e98db544 /doc
parent4c3581902665e0584739cd744853725911740491 (diff)
downloadSCons-fe975c11ffad1cf7b2521425669ee9b3d909e5c0.zip
SCons-fe975c11ffad1cf7b2521425669ee9b3d909e5c0.tar.gz
SCons-fe975c11ffad1cf7b2521425669ee9b3d909e5c0.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 )