diff options
author | Steven Knight <knight@baldmt.com> | 2004-08-30 21:46:36 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-08-30 21:46:36 (GMT) |
commit | 96cb20e235d66ab6ca7f50e2a1a9dc60d34d85db (patch) | |
tree | 884320473c7701f608c59c14458eec4a55ff0e31 /doc/man | |
parent | c1315083b2616e381a8ec5b73cab554a98eb54ae (diff) | |
download | SCons-96cb20e235d66ab6ca7f50e2a1a9dc60d34d85db.zip SCons-96cb20e235d66ab6ca7f50e2a1a9dc60d34d85db.tar.gz SCons-96cb20e235d66ab6ca7f50e2a1a9dc60d34d85db.tar.bz2 |
Add an Environment.Dump() method. (Gary Oberbrunner)
Diffstat (limited to 'doc/man')
-rw-r--r-- | doc/man/scons.1 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index 54a76ab..a08b151 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -2627,6 +2627,40 @@ see "File and Directory Nodes," below. '\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .TP +.RI env.Dump([ key ]) +Returns a pretty printable representation of the environment. +.IR key , +if not +.IR None , +should be a string containing the name of the variable of interest. + +This SConstruct: +.ES +env=Environment() +print env.Dump('CCCOM') +.EE +will print: +.ES +'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -c -o $TARGET $SOURCES' +.EE + +.ES +env=Environment() +print env.Dump() +.EE +will print: +.ES +{ 'AR': 'ar', + 'ARCOM': '$AR $ARFLAGS $TARGET $SOURCES\n$RANLIB $RANLIBFLAGS $TARGET', + 'ARFLAGS': ['r'], + 'AS': 'as', + 'ASCOM': '$AS $ASFLAGS -o $TARGET $SOURCES', + 'ASFLAGS': [], + ... +.EE + +'\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +.TP .RI EnsurePythonVersion( major ", " minor ) .TP .RI env.EnsurePythonVersion( major ", " minor ) |