Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4319)

Issue 8300043: Add a python script to generate the man page.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by thumper
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+156728, dave
Visibility:
Public.

Description

Add a python script to generate the man page. To generate a man page locally, first build and install juju (as the python script calls juju to get the information), then run ./scripts/generate-docs.py man This will create a local juju.1 file. You can use man to look at this by: man ./juju.1 To make the gzipped one installed in the right place: ./scripts/generate-docs.py man -o - | gzip | sudo tee /usr/share/man/man1/juju.1.gz > /dev/null There is probably an easier way, but I couldn't figure it out, and gave up looking. https://code.launchpad.net/~thumper/juju-core/man-page/+merge/156728 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Add a python script to generate the man page. #

Patch Set 3 : Add a python script to generate the man page. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -0 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A scripts/generate-docs.py View 1 1 chunk +64 lines, -0 lines 0 comments Download
A scripts/jujuman.py View 1 1 chunk +160 lines, -0 lines 0 comments Download

Messages

Total messages: 5
thumper
Please take a look.
11 years, 1 month ago (2013-04-03 03:02:56 UTC) #1
thumper
Please take a look.
11 years, 1 month ago (2013-04-03 03:09:45 UTC) #2
dave_cheney.net
LGTM. Thanks. Please mention the LP# somewhere.
11 years, 1 month ago (2013-04-03 05:44:13 UTC) #3
dimitern
LGTM, nice! Please link it to lp:1160097, as Dave suggests.
11 years, 1 month ago (2013-04-03 08:51:43 UTC) #4
thumper
11 years, 1 month ago (2013-04-03 20:28:47 UTC) #5
*** Submitted:

Add a python script to generate the man page.

To generate a man page locally, first build and install juju (as the python
script calls juju to get the information), then run
  ./scripts/generate-docs.py man

This will create a local juju.1 file.  You can use man to look at this by:
  man ./juju.1

To make the gzipped one installed in the right place:
  ./scripts/generate-docs.py man -o - | gzip | sudo tee
/usr/share/man/man1/juju.1.gz > /dev/null

There is probably an easier way, but I couldn't figure it out, and gave up
looking.

R=
CC=
https://codereview.appspot.com/8300043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b