diff options
author | Brad King <brad.king@kitware.com> | 2006-05-05 14:29:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-05-05 14:29:27 (GMT) |
commit | 523d9ebeed37fe256afb292de2f20f093eb873d1 (patch) | |
tree | fdec5345f35b207887a7d89df101fdb8ce3ef136 /Source/kwsys/SystemTools.hxx.in | |
parent | 6b9f681f911e15d1930d5c2735a73c95c8f837e5 (diff) | |
download | CMake-523d9ebeed37fe256afb292de2f20f093eb873d1.zip CMake-523d9ebeed37fe256afb292de2f20f093eb873d1.tar.gz CMake-523d9ebeed37fe256afb292de2f20f093eb873d1.tar.bz2 |
ENH: Added always/if-different option to CopyADirectory. Added CopyAFile with the same interface.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index af26444..dada510 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -469,10 +469,21 @@ public: static bool CopyFileAlways(const char* source, const char* destination); /** - * Copy content directory to another directory with all files and - * subdirectories + * Copy a file. If the "always" argument is true the file is always + * copied. If it is false, the file is copied only if it is new or + * has changed. */ - static bool CopyADirectory(const char* source, const char* destination); + static bool CopyAFile(const char* source, const char* destination, + bool always = true); + + /** + * Copy content directory to another directory with all files and + * subdirectories. If the "always" argument is true all files are + * always copied. If it is false, only files that have changed or + * are new are copied. + */ + static bool CopyADirectory(const char* source, const char* destination, + bool always = true); /** * Remove a file |