# # # patch "Makefile.am" # from [4b4a55bd593a0fcd9eeff77187ada1bd9407c51c] # to [39a437d0d221c6f0e811d0526c60a3d27b9823d2] # # patch "cmd.cc" # from [c424c66aa2fb7c121a22065246f61b8f67e76552] # to [437ea37c555df92d13ec9fa41743bde15ed3e756] # ============================================================ --- Makefile.am 4b4a55bd593a0fcd9eeff77187ada1bd9407c51c +++ Makefile.am 39a437d0d221c6f0e811d0526c60a3d27b9823d2 @@ -766,7 +766,7 @@ mtn.1: mtn mtn.1: mtn $(AM_V_GEN)REAL_BLDDIR=$$PWD/$(top_builddir); \ - (cd $(srcdir) && $$REAL_BLDDIR/mtn manpage) 2>/dev/null >$@ || rm -f $@ + (cd $(srcdir) && $$REAL_BLDDIR/mtn manpage --norc) 2>/dev/null >$@ || rm -f $@ # Verbosity goo. V_bcxx = $(V_bcxx_$(V)) ============================================================ --- cmd.cc c424c66aa2fb7c121a22065246f61b8f67e76552 +++ cmd.cc 437ea37c555df92d13ec9fa41743bde15ed3e756 @@ -513,12 +513,6 @@ static string } static string -man_roman(string const & content) -{ - return "\\fR" + content + "\\fP"; -} - -static string man_bold(string const & content) { return "\\fB" + content + "\\fP"; @@ -633,6 +627,11 @@ get_command_tree(options & opts, command } else { + // there are no top level commands, so this must be an + // empty group - skip it + if (subcmd->parent() == CMD_REF(__root__)) + continue; + // this builds a list of already formatted command calls // which are used as label for the specific command section vector cmd_calls; @@ -732,7 +731,7 @@ CMD_HIDDEN(manpage, "manpage", "", CMD_R "monotone has an easy-to-learn command set and comes with a rich " "interface for scripting purposes and thorough documentation.") << "\n\n"; - cout << (F("For more information on monotone, visit %s.") + cout << (F("For more information on monotone, visit %s.") % man_bold("http://www.monotone.ca")).str() << "\n\n"; cout << (F("The complete documentation, including a tutorial for a quick start "