summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-08-15 13:39:14 (GMT)
committerSteven Knight <knight@baldmt.com>2005-08-15 13:39:14 (GMT)
commitf01dd101ed242d54013873a0eae7f8ce2df86f6e (patch)
treee5d7e21a8b69a397a9a6abfd04cb117c5dd06773 /doc
parentecfd19ceae2a58ad832a6f3cd4f1777a19348345 (diff)
downloadSCons-f01dd101ed242d54013873a0eae7f8ce2df86f6e.zip
SCons-f01dd101ed242d54013873a0eae7f8ce2df86f6e.tar.gz
SCons-f01dd101ed242d54013873a0eae7f8ce2df86f6e.tar.bz2
Documentation fixes.
Improve man page explanation of impact of not having external environment variables automatically imported. Fix cut-and-paste errors in descriptions of AppendENVPath() and Prepend(). Correct the __doc__ string for get_visualstudio_versions().
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.126
1 files changed, 24 insertions, 2 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 96bd467..14a0bf2 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -149,6 +149,28 @@ import os
env = Environment(ENV = {'PATH' : os.environ['PATH']})
.EE
+Similarly, if the commands use external environment variables
+like $PATH, $HOME, $JAVA_HOME, $LANG, $SHELL, $TERM, etc.,
+these variables can also be explicitly propagated:
+
+.ES
+import os
+env = Environment(ENV = {'PATH' : os.environ['PATH'],
+ 'HOME' : os.environ['HOME']})
+.EE
+
+Or you may explicitly propagate the invoking user's
+complete external environment:
+
+.ES
+import os
+env = Environment(ENV = os.environ['PATH'])
+.EE
+
+This comes at the expense of making your build
+dependent on the user's environment being set correctly,
+but it may be more convenient for many configurations.
+
.B scons
can scan known input files automatically for dependency
information (for example, #include statements
@@ -2537,7 +2559,7 @@ Example:
.ES
print 'before:',env['ENV']['INCLUDE']
include_path = '/foo/bar:/foo'
-env.PrependENVPath('INCLUDE', include_path)
+env.AppendENVPath('INCLUDE', include_path)
print 'after:',env['ENV']['INCLUDE']
yields:
@@ -3716,7 +3738,7 @@ after: /foo/bar:/foo:/biz
'\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.TP
-.RI env.AppendUnique( key = val ", [...])"
+.RI env.PrependUnique( key = val ", [...])"
Appends the specified keyword arguments
to the beginning of construction variables in the environment.
If the Environment does not have