From 18a9fdf8f440bd46888ba1d4a1bcb7fe5f7c7c6e Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 18 Feb 2003 20:54:28 -0500 Subject: ENH: Updated to use cmDocumentation class. --- Source/cmDumpDocumentation.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/cmDumpDocumentation.cxx b/Source/cmDumpDocumentation.cxx index 18473b8..a9e0a5d 100644 --- a/Source/cmDumpDocumentation.cxx +++ b/Source/cmDumpDocumentation.cxx @@ -19,6 +19,8 @@ // #include "cmake.h" +#include "cmDocumentation.h" + int main(int ac, char** av) { cmSystemTools::EnableMSVCDebugHook(); @@ -34,6 +36,13 @@ int main(int ac, char** av) std::cerr << "failed to open output file: " << outname << "\n"; return -1; } - cmi.DumpDocumentationToFile(fout); + + cmDocumentation doc; + std::vector commands; + cmi.GetCommandDocumentation(commands); + doc.AddSection("Documentation for Commands of CMake " CMake_VERSION_STRING, + &commands[0]); + doc.Print(cmDocumentation::HTMLForm, fout); + return 0; } -- cgit v0.12