/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_man.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:29:48 UTC
  • mto: (6622.1.25 rename)
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521122948-hwr3f7jq6u9vp65r
bzr => brz in docs, explain fork.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""man.py - create man page from built-in bzr help and static text
 
17
"""man.py - create man page from built-in brz help and static text
18
18
 
19
19
TODO:
20
 
  * use usage information instead of simple "bzr foo" in COMMAND OVERVIEW
 
20
  * use usage information instead of simple "brz foo" in COMMAND OVERVIEW
21
21
  * add command aliases
22
22
"""
23
23
 
101
101
 
102
102
 
103
103
def getcommand_help(params):
104
 
    """Shows individual options for a bzr command"""
 
104
    """Shows individual options for a brz command"""
105
105
    output='.SH "COMMAND REFERENCE"\n'
106
106
    formatted = {}
107
107
    for cmd_name in command_name_list():
167
167
 
168
168
 
169
169
def format_alias(params, alias, cmd_name):
170
 
    help = '.SS "bzr %s"\n' % alias
171
 
    help += 'Alias for "%s", see "bzr %s".\n' % (cmd_name, cmd_name)
 
170
    help = '.SS "brz %s"\n' % alias
 
171
    help += 'Alias for "%s", see "brz %s".\n' % (cmd_name, cmd_name)
172
172
    return help
173
173
 
174
174
 
183
183
 
184
184
 
185
185
man_preamble = """\
186
 
.\\\"Man page for Bazaar (%(bzrcmd)s)
 
186
.\\\"Man page for Breezy (%(bzrcmd)s)
187
187
.\\\"
188
188
.\\\" Large parts of this file are autogenerated from the output of
189
189
.\\\"     \"%(bzrcmd)s help commands\"
196
196
 
197
197
 
198
198
man_head = """\
199
 
.TH bzr 1 "%(datestamp)s" "%(version)s" "Bazaar"
 
199
.TH brz 1 "%(datestamp)s" "%(version)s" "Breezy"
200
200
.SH "NAME"
201
 
%(bzrcmd)s - Bazaar next-generation distributed version control
 
201
%(bzrcmd)s - Breezy next-generation distributed version control
202
202
.SH "SYNOPSIS"
203
203
.B "%(bzrcmd)s"
204
204
.I "command"
214
214
.I "command"
215
215
.SH "DESCRIPTION"
216
216
 
217
 
Bazaar (or %(bzrcmd)s) is a distributed version control system that is powerful, 
218
 
friendly, and scalable.  Bazaar is a project of Canonical Ltd and part of 
219
 
the GNU Project to develop a free operating system.
 
217
Breezy (or %(bzrcmd)s) is a distributed version control system that is powerful,
 
218
friendly, and scalable.  Breezy is a fork of the Bazaar version control system.
220
219
 
221
 
Bazaar keeps track of changes to software source code (or similar information);
 
220
Breezy keeps track of changes to software source code (or similar information);
222
221
lets you explore who changed it, when, and why; merges concurrent changes; and
223
222
helps people work together in a team.
224
223
"""