summaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--doc/man/scons.115
-rw-r--r--src/CHANGES.txt2
2 files changed, 16 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 )
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index f1350af..51fdbc3 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -397,6 +397,8 @@ RELEASE 0.97 - XXX
- Add $RPATH (-R) support to the Sun linker Tool (sunlink).
+ - Add a description of env.subst() to the man page.
+
From Chris Prince:
- Look in the right directory, not always the local directory, for a