aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/prerst2man.py
Commit message (Collapse)AuthorAge
* doc/prerst2man.py: Fix 'os.system' -> 'system' typoGravatar W. Trevor King2014-04-21
| | | | | | | | | | | | | | | | | Avoid: $ make HAVE_SPHINX=0 HAVE_RST2MAN=1 build-man python ./doc/prerst2man.py ./doc doc/_build/man Traceback (most recent call last): File "./doc/prerst2man.py", line 65, in <module> os.system('set -x; rst2man {0} {1}/{2}.{3}' NameError: name 'os' is not defined make: *** [doc/_build/man/man1/notmuch.1] Error 1 by using system directly. We don't need the 'os.' namespacing, because the function was imported with: from os import makedirs, system
* doc/prerst2man.py: Use Python-3-compatible octal notationGravatar W. Trevor King2014-04-21
| | | | | | | | Python 3 only supports the 0oXXX notation for octal literals [1,2], which have also been supported in 2.x since 2.6 [2]. [1]: https://docs.python.org/3.0/whatsnew/3.0.html#integers [2]: http://legacy.python.org/dev/peps/pep-3127/
* doc: cosmetic fix for prerst2man.pyGravatar David Bremner2014-03-18
| | | | | Fix a particular egregious combination of format and string concatenation.
* doc: add target rst2man to build man pages using rst2manGravatar David Bremner2014-03-09
Many people have docutils installed, but not sphinx. Allow these people to build the man pages.