| SCons User Guide 1.1.0 | ||
|---|---|---|
| <<< Previous | Platform-Independent File System Manipulation | Next >>> |
To change permissions on a file or directory, use the Chmod factory. The permission argument uses POSIX-style permission bits and should typically be expressed as an octal, not decimal, number:
Command("file.out", "file.in",
[
Copy("$TARGET", "$SOURCE"),
Chmod("$TARGET", 0755),
])
|
Which executes:
% scons -Q
Copy("file.out", "file.in")
Chmod("file.out", 0755)
|
| <<< Previous | Home | Next >>> |
| Creating a Directory: The Mkdir Factory | Up | Executing an action immediately: the Execute Function |