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
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.
27 sys.path.append('@PYTHON_PACKAGE_DIR@')
29 from gtkdoc import config, mkhtml
31 if __name__ == '__main__':
32 parser = argparse.ArgumentParser(
33 description='gtkdoc-mkhtml version %s - generate documentation in html 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='*',
40 help='MODULE DRIVER_FILE')
41 # TODO: only for testing, replace with env-var
42 parser.add_argument('--uninstalled', action='store_true', default=False,
45 options = parser.parse_args()
46 if len(options.args) < 2:
47 sys.exit('Too few arguments')
49 sys.exit(mkhtml.run(options))