summaryrefslogtreecommitdiff
path: root/dist/s_docs
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2014-04-03 05:20:39 +0000
committerAlex Gorrod <alexg@wiredtiger.com>2014-04-03 05:20:39 +0000
commitfbcc2bef0d277de29248d07d78c58ecf9a89aca7 (patch)
treef8cb21ec8726c9a394c70ade2657884ce3a45698 /dist/s_docs
parent514d9b9878f51ecf8a618076af3121b4e91b0653 (diff)
downloadmongo-fbcc2bef0d277de29248d07d78c58ecf9a89aca7.tar.gz
Generate Linux man pages when generating docs.
Diffstat (limited to 'dist/s_docs')
-rwxr-xr-xdist/s_docs9
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/s_docs b/dist/s_docs
index 208ed95fc3e..55e4557e234 100755
--- a/dist/s_docs
+++ b/dist/s_docs
@@ -103,6 +103,15 @@ EOF
(cd ../docs &&
sed -i~ -e 's,/\.html,/,' -e 's,\.html\.html,.html,' navtree.js &&
rm -f navtree.js~)
+
+ # Fixup the man pages generated by Doxygen. We want the command line
+ # documentation to be the main man page, but also install a man page
+ # for the WiredTiger header into the library section.
+ (cd ../docs && mkdir -p man/man1 &&
+ mv man/man3/command_line.3 man/man1/wt.1 &&
+ sed -i~ -e 's/command_line/wt/g' man/man1/wt.1 &&
+ mv man/man3/wt.3 man/ && rm -f man/man3/* &&
+ mv man/wt.3 man/man3/wiredtiger.3)
}
clean=0