mkhtml2: add tag converter for 'firstterm'
[gtk-doc.git] / gtkdoc-mkman.in
blobc5445cd39794f48daf6badcbcaeb4c7e155ad5e1
1 #!@PYTHON@
2 # -*- python; coding: utf-8 -*-
4 # gtk-doc - GTK DocBook documentation generator.
5 # Copyright (C) 1998 Owen Taylor
6 #               2001-2005 Damon Chaplin
7 #               2009-2017  Stefan Sauer
8 #               2017  Jussi Pakkanen
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2 of the License, or
13 # (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 import argparse
26 import sys
27 sys.path.append('@PYTHON_PACKAGE_DIR@')
29 from gtkdoc import common, config, mkman
31 if __name__ == '__main__':
32     parser = argparse.ArgumentParser(
33         description='gtkdoc-mkman version %s - generate documentation in man format' % config.version)
34     parser.add_argument('--version', action='version', version=config.version)
35     parser.add_argument('--verbose', default=False, action='store_true',
36                         help='Print extra output while processing')
37     parser.add_argument('--path', default=[], action='append',
38                         help='Extra source directories')
39     parser.add_argument('args', nargs=2,
40                         help='MODULE DRIVER_FILE')
41     # TODO: only for testing, replace with env-var
42     parser.add_argument('--uninstalled', action='store_true', default=False,
43                         help='???')
45     options = parser.parse_args()
47     common.setup_logging()
49     sys.exit(mkman.run(options))