summaryrefslogtreecommitdiff
path: root/sandbox/texinfo-writer/rst2texinfo.py
blob: 648da6755b0818d91316394e73317d01f7b20ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

import locale
try:
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

from docutils.core import publish_cmdline, default_description
from texinfo import Writer


def main():
    description = ("Converts reStructuredText to Texinfo.  "
                   + default_description)
    publish_cmdline(writer=Writer(), description=description)


if __name__ == '__main__':
    main()