[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.432 1.433 cmDumpDocumentation.cxx 1.21 NONE cmake.cxx 1.439 1.440 cmake.h 1.122 1.123
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Dec 8 09:38:38 EST 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv23952/Source
Modified Files:
CMakeLists.txt cmake.cxx cmake.h
Removed Files:
cmDumpDocumentation.cxx
Log Message:
Remove unused DumpDocumentation code
The DumpDocumentation executable and some supporting code and tests were
completely unused by CMake. Generation of documentation is done by the
individual executables with --help* options. In this commit we simply
remove the unused code, executable, and test.
Index: cmake.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.h,v
retrieving revision 1.122
retrieving revision 1.123
diff -C 2 -d -r1.122 -r1.123
*** cmake.h 21 Oct 2009 17:10:24 -0000 1.122
--- cmake.h 8 Dec 2009 14:38:34 -0000 1.123
***************
*** 124,133 ****
/**
- * Dump documentation to a file. If 0 is returned, the
- * operation failed.
- */
- int DumpDocumentationToFile(std::ostream&);
-
- /**
* Handle a command line invocation of cmake.
*/
--- 124,127 ----
--- cmDumpDocumentation.cxx DELETED ---
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CMakeLists.txt,v
retrieving revision 1.432
retrieving revision 1.433
diff -C 2 -d -r1.432 -r1.433
*** CMakeLists.txt 5 Nov 2009 20:00:14 -0000 1.432
--- CMakeLists.txt 8 Dec 2009 14:38:29 -0000 1.433
***************
*** 460,465 ****
ADD_EXECUTABLE(cmake cmakemain.cxx)
TARGET_LINK_LIBRARIES(cmake CMakeLib)
- ADD_EXECUTABLE(DumpDocumentation cmDumpDocumentation)
- TARGET_LINK_LIBRARIES(DumpDocumentation CMakeLib)
# Build special executable for running programs on Windows 98
--- 460,463 ----
Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.439
retrieving revision 1.440
diff -C 2 -d -r1.439 -r1.440
*** cmake.cxx 9 Nov 2009 19:08:17 -0000 1.439
--- cmake.cxx 8 Dec 2009 14:38:33 -0000 1.440
***************
*** 2323,2354 ****
}
- int cmake::DumpDocumentationToFile(std::ostream& f)
- {
- #ifdef CMAKE_BUILD_WITH_CMAKE
- // Loop over all registered commands and print out documentation
- const char *name;
- const char *terse;
- const char *full;
- char tmp[1024];
- sprintf(tmp,"Version %s", cmVersion::GetCMakeVersion());
- f << "<html>\n";
- f << "<h1>Documentation for commands of CMake " << tmp << "</h1>\n";
- f << "<ul>\n";
- for(RegisteredCommandsMap::iterator j = this->Commands.begin();
- j != this->Commands.end(); ++j)
- {
- name = (*j).second->GetName();
- terse = (*j).second->GetTerseDocumentation();
- full = (*j).second->GetFullDocumentation();
- f << "<li><b>" << name << "</b> - " << terse << std::endl
- << "<br><i>Usage:</i> " << full << "</li>" << std::endl << std::endl;
- }
- f << "</ul></html>\n";
- #else
- (void)f;
- #endif
- return 1;
- }
-
void cmake::AddDefaultCommands()
{
--- 2323,2326 ----
More information about the Cmake-commits
mailing list