From ca8600a9c6d93450eca5b02d2d40069458572b18 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Mon, 30 May 2005 15:22:55 +0000 Subject: [PATCH] Add a brief description of env.subst() to the man page. (Karol Pietrzak) git-svn-id: http://scons.tigris.org/svn/scons/trunk@1300 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- doc/man/scons.1 | 15 ++++++++++++++- src/CHANGES.txt | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/man/scons.1 b/doc/man/scons.1 index 52655bf9..5eae209a 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 f1350af4..51fdbc3d 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 -- 2.26.2