summaryrefslogtreecommitdiffstats
path: root/Source/cmDumpDocumentation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-19 01:54:28 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-19 01:54:28 (GMT)
commit18a9fdf8f440bd46888ba1d4a1bcb7fe5f7c7c6e (patch)
tree4dc65b43af67e4ed43530a43690f5500d171feaf /Source/cmDumpDocumentation.cxx
parent5e18bec8f76a811e48d2c31a954d0de44e8c5c11 (diff)
downloadCMake-18a9fdf8f440bd46888ba1d4a1bcb7fe5f7c7c6e.zip
CMake-18a9fdf8f440bd46888ba1d4a1bcb7fe5f7c7c6e.tar.gz
CMake-18a9fdf8f440bd46888ba1d4a1bcb7fe5f7c7c6e.tar.bz2
ENH: Updated to use cmDocumentation class.
Diffstat (limited to 'Source/cmDumpDocumentation.cxx')
-rw-r--r--Source/cmDumpDocumentation.cxx11
1 files changed, 10 insertions, 1 deletions
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<cmDocumentationEntry> commands;
+ cmi.GetCommandDocumentation(commands);
+ doc.AddSection("Documentation for Commands of CMake " CMake_VERSION_STRING,
+ &commands[0]);
+ doc.Print(cmDocumentation::HTMLForm, fout);
+
return 0;
}