summaryrefslogtreecommitdiffstats
path: root/doc/man
diff options
context:
space:
mode:
authorAdarsh Sanjeev <adarshsanjeev@gmail.com>2016-01-04 19:37:04 (GMT)
committerAdarsh Sanjeev <adarshsanjeev@gmail.com>2016-01-04 19:37:04 (GMT)
commit3909c2e02d5497858dcb509f09fe5766a9aa0b4d (patch)
tree7e2b9aedb467666b37341c69b64c2f9cab354a84 /doc/man
parentea232cd3c7b8af29de3fa2619a20e7a24886cdcb (diff)
downloadSCons-3909c2e02d5497858dcb509f09fe5766a9aa0b4d.zip
SCons-3909c2e02d5497858dcb509f09fe5766a9aa0b4d.tar.gz
SCons-3909c2e02d5497858dcb509f09fe5766a9aa0b4d.tar.bz2
Updated documentation
Diffstat (limited to 'doc/man')
-rw-r--r--doc/man/scons.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/man/scons.xml b/doc/man/scons.xml
index 5c832c2..c72178e 100644
--- a/doc/man/scons.xml
+++ b/doc/man/scons.xml
@@ -5630,7 +5630,8 @@ env.Command('foo.out', 'foo.in',
changes the permissions on the specified
<emphasis>dest</emphasis>
file or directory to the specified
-<emphasis>mode</emphasis>.
+<emphasis>mode</emphasis>
+which can be octal or string, similar to the bash command.
Examples:</para>
<literallayout class="monospaced">
@@ -5639,6 +5640,12 @@ Execute(Chmod('file', 0755))
env.Command('foo.out', 'foo.in',
[Copy('$TARGET', '$SOURCE'),
Chmod('$TARGET', 0755)])
+
+Execute(Chmod('file', "ugo+w"))
+
+env.Command('foo.out', 'foo.in',
+ [Copy('$TARGET', '$SOURCE'),
+ Chmod('$TARGET', "ugo+w")])
</literallayout>
</listitem>