[cmake-commits] martink committed cmake.cxx 1.287 1.288

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Mar 12 11:40:37 EST 2007


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

Modified Files:
	cmake.cxx 
Log Message:
ENH: small enchancement for bug 3776.


Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.287
retrieving revision 1.288
diff -u -d -r1.287 -r1.288
--- cmake.cxx	8 Mar 2007 13:38:40 -0000	1.287
+++ cmake.cxx	12 Mar 2007 16:40:34 -0000	1.288
@@ -800,7 +800,8 @@
     << "  echo_append [string]... - displays arguments as text but no new"
     " line\n"
     << "  environment             - display the current enviroment\n"
-    << "  remove file1 file2 ...  - remove the file(s)\n"
+    << "  make_directory dir      - create a directory\n"
+    << "  remeove file1 file2 ... - remove the file(s)\n"
     << "  tar [cxt][vfz] file.tar file/dir1 file/dir2 ... - create a tar.\n"
     << "  time command [args] ... - run command and return elapsed time\n"
 #if defined(_WIN32) && !defined(__CYGWIN__)
@@ -912,6 +913,17 @@
       return 0;
       }
 #endif
+    
+    if (args[1] == "make_directory" && args.size() == 3)
+      {
+      if(!cmSystemTools::MakeDirectory(args[2].c_str()))
+        {
+        std::cerr << "Error making directory \"" << args[2].c_str()
+                  << "\".\n";
+        return 1;
+        }
+      return 0;
+      }
 
     // Remove file
     else if (args[1] == "remove" && args.size() > 2)



More information about the Cmake-commits mailing list