diff options
Diffstat (limited to 'doc/user')
-rw-r--r-- | doc/user/factories.xml | 18 | ||||
-rw-r--r-- | doc/user/main.xml | 2 | ||||
-rw-r--r-- | doc/user/sconf.xml | 20 |
3 files changed, 39 insertions, 1 deletions
diff --git a/doc/user/factories.xml b/doc/user/factories.xml index 08f20e6..c8480db 100644 --- a/doc/user/factories.xml +++ b/doc/user/factories.xml @@ -176,6 +176,24 @@ touch $* <scons_output_command>scons -Q</scons_output_command> </scons_output> + <para> + The &Copy; factory has a third optional argument which controls + how symlinks are copied. + </para> + + <para> + </para> + + <scons_example name="factories_SymlinkCopy"> + <file name ="SymlinkCopy" printme="1"> +# Symbolic link shallow copied as a new symbolic link: +Command("LinkIn", "LinkOut", Copy("$TARGET", "$SOURCE"[, True])) + +# Symbolic link target copied as a file or directory: +Command("LinkIn", "FileOrDirectoryOut", Copy("$TARGET", "$SOURCE", False)) + </file> + </scons_example> + </section> <section> diff --git a/doc/user/main.xml b/doc/user/main.xml index ae515fa..a165777 100644 --- a/doc/user/main.xml +++ b/doc/user/main.xml @@ -72,7 +72,7 @@ <surname>Knight</surname> </author> - <corpauthor>Steven Knight</corpauthor> + <corpauthor>Steven Knight and the SCons Development Team</corpauthor> <pubdate>2004 - 2014</pubdate> diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml index ff39b6b..214569d 100644 --- a/doc/user/sconf.xml +++ b/doc/user/sconf.xml @@ -282,6 +282,26 @@ env = conf.Finish() </sconstruct> </section> + <section> + <title>Checking the size of a datatype</title> + <para> + Check the size of a datatype by using the &CheckTypeSize; method: + </para> + + <sconstruct> +env = Environment() +conf = Configure(env) +int_size = conf.CheckTypeSize('unsigned int') +print 'sizeof unsigned int is', int_size +env = conf.Finish() + </sconstruct> + + <screen> +% <userinput>scons -Q</userinput> +sizeof unsigned int is 4 +scons: `.' is up to date. + </screen> + </section> <section> <title>Adding Your Own Custom Checks</title> |