|
Packit Service |
7866ab |
#!@PYTHON@
|
|
Packit Service |
7866ab |
# -*- python; coding: utf-8 -*-
|
|
Packit Service |
7866ab |
#
|
|
Packit Service |
7866ab |
# gtk-doc - GTK DocBook documentation generator.
|
|
Packit Service |
7866ab |
# Copyright (C) 1998 Owen Taylor
|
|
Packit Service |
7866ab |
# 2001-2005 Damon Chaplin
|
|
Packit Service |
7866ab |
# 2009-2017 Stefan Sauer
|
|
Packit Service |
7866ab |
# 2017 Jussi Pakkanen
|
|
Packit Service |
7866ab |
#
|
|
Packit Service |
7866ab |
# This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
7866ab |
# it under the terms of the GNU General Public License as published by
|
|
Packit Service |
7866ab |
# the Free Software Foundation; either version 2 of the License, or
|
|
Packit Service |
7866ab |
# (at your option) any later version.
|
|
Packit Service |
7866ab |
#
|
|
Packit Service |
7866ab |
# This program is distributed in the hope that it will be useful,
|
|
Packit Service |
7866ab |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
7866ab |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
7866ab |
# GNU General Public License for more details.
|
|
Packit Service |
7866ab |
#
|
|
Packit Service |
7866ab |
# You should have received a copy of the GNU General Public License
|
|
Packit Service |
7866ab |
# along with this program; if not, write to the Free Software
|
|
Packit Service |
7866ab |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit Service |
7866ab |
#
|
|
Packit Service |
7866ab |
|
|
Packit Service |
7866ab |
import argparse
|
|
Packit Service |
7866ab |
import sys
|
|
Packit Service |
7866ab |
sys.path.append('@PYTHON_PACKAGE_DIR@')
|
|
Packit Service |
7866ab |
|
|
Packit Service |
7866ab |
from gtkdoc import common, config, mkman
|
|
Packit Service |
7866ab |
|
|
Packit Service |
7866ab |
if __name__ == '__main__':
|
|
Packit Service |
7866ab |
parser = argparse.ArgumentParser(
|
|
Packit Service |
7866ab |
description='gtkdoc-mkman version %s - generate documentation in man format' % config.version)
|
|
Packit Service |
7866ab |
parser.add_argument('--version', action='version', version=config.version)
|
|
Packit Service |
7866ab |
parser.add_argument('--verbose', default=False, action='store_true',
|
|
Packit Service |
7866ab |
help='Print extra output while processing')
|
|
Packit Service |
7866ab |
parser.add_argument('--path', default=[], action='append',
|
|
Packit Service |
7866ab |
help='Extra source directories')
|
|
Packit Service |
7866ab |
parser.add_argument('args', nargs=2,
|
|
Packit Service |
7866ab |
help='MODULE DRIVER_FILE')
|
|
Packit Service |
7866ab |
# TODO: only for testing, replace with env-var
|
|
Packit Service |
7866ab |
parser.add_argument('--uninstalled', action='store_true', default=False,
|
|
Packit Service |
7866ab |
help='???')
|
|
Packit Service |
7866ab |
|
|
Packit Service |
7866ab |
options = parser.parse_args()
|
|
Packit Service |
7866ab |
|
|
Packit Service |
7866ab |
common.setup_logging()
|
|
Packit Service |
7866ab |
|
|
Packit Service |
7866ab |
sys.exit(mkman.run(options))
|