SCons User Guide 0.97 | ||
---|---|---|
<<< Previous | Platform-Independent File System Manipulation | Next >>> |
If you just need to update the recorded modification time for a file, use the Touch factory:
Command("file.out", "file.in", [ Copy("tempfile", "$SOURCE"), "modify tempfile", Move("$TARGET", "tempfile"), ]) |
Which executes as:
% scons -Q Copy("tempfile", "file.in") modify tempfile Move("file.out", "tempfile") |
<<< Previous | Home | Next >>> |
Moving (Renaming) Files or Directories: The Move Factory | Up | Creating a Directory: The Mkdir Factory |