diff options
author | Brad King <brad.king@kitware.com> | 2007-03-12 17:50:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-12 17:50:28 (GMT) |
commit | e01cdf2065d93cdbb873999b45414133978860b2 (patch) | |
tree | f50fd8e9ba30e1bd19faf827952058a311ae2dbe /Source/kwsys/SystemTools.hxx.in | |
parent | 558dbc84adab239ab3043d0efd0891f9a995161e (diff) | |
download | CMake-e01cdf2065d93cdbb873999b45414133978860b2.zip CMake-e01cdf2065d93cdbb873999b45414133978860b2.tar.gz CMake-e01cdf2065d93cdbb873999b45414133978860b2.tar.bz2 |
ENH: Added kwsys SystemTools::CreateSymlink and SystemTools::ReadSymlink.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index 054666f..c89bd49 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -589,6 +589,18 @@ public: double percent_bin = 0.05); /** + * Create a symbolic link if the platform supports it. Returns whether + * creation succeded. + */ + static bool CreateSymlink(const char* origName, const char* newName); + + /** + * Read the contents of a symbolic link. Returns whether reading + * succeded. + */ + static bool ReadSymlink(const char* newName, kwsys_stl::string& origName); + + /** * Try to locate the file 'filename' in the directory 'dir'. * If 'filename' is a fully qualified filename, the basename of the file is * used to check for its existence in 'dir'. |