diff options
author | Brad King <brad.king@kitware.com> | 2006-08-22 14:38:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-22 14:38:10 (GMT) |
commit | 211e991057ed282e6fcf07d8e9212b6136411b10 (patch) | |
tree | 9dc1e12fec1ef585f7e2c312a61e6cc1f0185e69 | |
parent | c9eaf72567b13cd587e9d5d1d1b0ad17e43a274f (diff) | |
download | CMake-211e991057ed282e6fcf07d8e9212b6136411b10.zip CMake-211e991057ed282e6fcf07d8e9212b6136411b10.tar.gz CMake-211e991057ed282e6fcf07d8e9212b6136411b10.tar.bz2 |
BUG: Fixed man page formatting for INSTALL command documentation. Fixed line-too-long warning.
-rw-r--r-- | Source/cmDocumentation.cxx | 8 | ||||
-rw-r--r-- | Source/cmInstallCommand.h | 26 |
2 files changed, 20 insertions, 14 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 2b148ea..0c73394 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -840,13 +840,17 @@ void cmDocumentation::PrintParagraphHTML(std::ostream& os, const char* text) //---------------------------------------------------------------------------- void cmDocumentation::PrintPreformattedMan(std::ostream& os, const char* text) { - os << text << "\n"; + std::string man_text = text; + cmSystemTools::ReplaceString(man_text, "\\", "\\\\"); + os << man_text << "\n"; } //---------------------------------------------------------------------------- void cmDocumentation::PrintParagraphMan(std::ostream& os, const char* text) { - os << text << "\n\n"; + std::string man_text = text; + cmSystemTools::ReplaceString(man_text, "\\", "\\\\"); + os << man_text << "\n\n"; } //---------------------------------------------------------------------------- diff --git a/Source/cmInstallCommand.h b/Source/cmInstallCommand.h index 0607d16..1d05821 100644 --- a/Source/cmInstallCommand.h +++ b/Source/cmInstallCommand.h @@ -95,12 +95,13 @@ public: "when a single file is installed by the command. " "\n" "The TARGETS signature:\n" - " INSTALL(TARGETS targets... [[ARCHIVE|LIBRARY|RUNTIME]\n" - " [DESTINATION <dir>]\n" - " [PERMISSIONS permissions...]\n" - " [CONFIGURATIONS [Debug|Release|...]]\n" - " [COMPONENT <component>]\n" - " ] [...])\n" + " INSTALL(TARGETS targets...\n" + " [[ARCHIVE|LIBRARY|RUNTIME]\n" + " [DESTINATION <dir>]\n" + " [PERMISSIONS permissions...]\n" + " [CONFIGURATIONS [Debug|Release|...]]\n" + " [COMPONENT <component>]\n" + " ] [...])\n" "The TARGETS form specifies rules for installing targets from a " "project. There are three kinds of target files that may be " "installed: archive, library, and runtime. " @@ -194,15 +195,16 @@ public: "expression to match directories or files encountered during traversal " "of an input directory. The full path to an input file or directory " "(with forward slashes) is matched against the expression. " - "A PATTERN will match only complete file names: the portion of the full " - "path matching the pattern must occur at the end of the file name and " - "be preceded by a slash. " + "A PATTERN will match only complete file names: the portion of the " + "full path matching the pattern must occur at the end of the file name " + "and be preceded by a slash. " "A REGEX will match any portion of the full path but it may use " "'/' and '$' to simulate the PATTERN behavior. " "Options following one of these matching expressions " - "are applied only to files or directories matching them. The EXCLUDE " - "option will skip the matched file or directory. The PERMISSIONS " - "option overrides the permissions setting for the matched file. " + "are applied only to files or directories matching them. " + "The EXCLUDE option will skip the matched file or directory. " + "The PERMISSIONS option overrides the permissions setting for the " + "matched file or directory. " "For example the code\n" " INSTALL(DIRECTORY icons scripts/ DESTINATION share/myproj\n" " PATTERN \"CVS\" EXCLUDE\n" |