Blame gtkdoc-check.in

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) 2007  David Nečas
Packit Service 7866ab
#               2007-2017  Stefan Sauer
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, check, config
Packit Service 7866ab
Packit Service 7866ab
if __name__ == '__main__':
Packit Service 7866ab
    parser = argparse.ArgumentParser(
Packit Service 7866ab
        description='gtkdoc-check version %s - run documentation unit tests' % config.version)
Packit Service 7866ab
    parser.add_argument('--version', action='version', version=config.version)
Packit Service 7866ab
    options = parser.parse_args()
Packit Service 7866ab
Packit Service 7866ab
    common.setup_logging()
Packit Service 7866ab
Packit Service 7866ab
    sys.exit(check.run(options))