[cmake-commits] king committed cmSystemTools.cxx 1.337 1.338 cmSystemTools.h 1.138 1.139

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Mar 12 12:50:30 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv12235

Modified Files:
	cmSystemTools.cxx cmSystemTools.h 
Log Message:
ENH: Added kwsys SystemTools::CreateSymlink and SystemTools::ReadSymlink.


Index: cmSystemTools.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSystemTools.h,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- cmSystemTools.h	8 Mar 2007 16:49:26 -0000	1.138
+++ cmSystemTools.h	12 Mar 2007 17:50:28 -0000	1.139
@@ -297,7 +297,6 @@
   static std::string ConvertToRunCommandPath(const char* path);
   //! Check if the first string ends with the second one.
   static bool StringEndsWith(const char* str1, const char* str2);
-  static bool CreateSymlink(const char* origName, const char* newName);
   
   /** compute the relative path from local to remote.  local must 
       be a directory.  remote can be a file or a directory.  

Index: cmSystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSystemTools.cxx,v
retrieving revision 1.337
retrieving revision 1.338
diff -u -d -r1.337 -r1.338
--- cmSystemTools.cxx	8 Mar 2007 16:49:25 -0000	1.337
+++ cmSystemTools.cxx	12 Mar 2007 17:50:28 -0000	1.338
@@ -1376,20 +1376,6 @@
   return !strncmp(str1 + (strlen(str1)-strlen(str2)), str2, strlen(str2));
 }
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
-bool cmSystemTools::CreateSymlink(const char*, const char*)
-{
-  // Should we create a copy here?
-  return false;
-}
-#else
-bool cmSystemTools::CreateSymlink(const char* origName, const char* newName)
-{
-  return (symlink(origName, newName) >= 0);
-}
-#endif
-
-
 // compute the relative path from here to there
 std::string cmSystemTools::RelativePath(const char* local, const char* remote)
 {



More information about the Cmake-commits mailing list