diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-06-21 21:06:08 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-06-21 21:06:08 (GMT) |
commit | 38df155dd394efd45dff887028b2e1a4c0969b03 (patch) | |
tree | 3f4d3c0c989321d01f1cfa1a4c2d8e6d045741ff /Source/cmDocumentationFormatterMan.cxx | |
parent | e6a935f39b2d15677830fdba8090d8c725165ca9 (diff) | |
download | CMake-38df155dd394efd45dff887028b2e1a4c0969b03.zip CMake-38df155dd394efd45dff887028b2e1a4c0969b03.tar.gz CMake-38df155dd394efd45dff887028b2e1a4c0969b03.tar.bz2 |
documentation: preparation for making the man section configurable
This patch adds a man section number, which is then used by the
DocumentationFormatterMan. The section number is right now always 1,
detecting this from the file name will be the next step.
Alex
Diffstat (limited to 'Source/cmDocumentationFormatterMan.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterMan.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmDocumentationFormatterMan.cxx b/Source/cmDocumentationFormatterMan.cxx index 0c6d878..4123c85 100644 --- a/Source/cmDocumentationFormatterMan.cxx +++ b/Source/cmDocumentationFormatterMan.cxx @@ -19,9 +19,15 @@ cmDocumentationFormatterMan::cmDocumentationFormatterMan() :cmDocumentationFormatter() +,ManSection(1) { } +void cmDocumentationFormatterMan::SetManSection(int manSection) +{ + this->ManSection = manSection; +} + void cmDocumentationFormatterMan ::PrintSection(std::ostream& os, const cmDocumentationSection §ion, @@ -87,7 +93,7 @@ void cmDocumentationFormatterMan::PrintHeader(const char* docname, this->EscapeText(s_docname); this->EscapeText(s_appname); - os << ".TH " << s_docname << " 1 \"" + os << ".TH " << s_docname << " " << this->ManSection << " \"" << cmSystemTools::GetCurrentDateTime("%B %d, %Y").c_str() << "\" \"" << s_appname << " " << cmVersion::GetCMakeVersion() |