summaryrefslogtreecommitdiff
path: root/gtkdoc-mkhtml2.in
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2018-02-27 07:47:13 +0100
committerStefan Sauer <ensonic@users.sf.net>2018-02-27 07:47:13 +0100
commit822fd6056e18fce07ead73bd190c59df5e929e6d (patch)
tree844eae170b20634b0847537813cb0b3c9349a146 /gtkdoc-mkhtml2.in
parent18f6c53608ef904c81ec4aebc5ee4e0258a77028 (diff)
downloadgtk-doc-822fd6056e18fce07ead73bd190c59df5e929e6d.tar.gz
mkhtml2: move db2html to the gtkdoc package
Add tooling infrastructure for gtkdoc-mkhtml2 (previously db2html). This lets use reuse code from the other modeuls without hacks.
Diffstat (limited to 'gtkdoc-mkhtml2.in')
-rw-r--r--gtkdoc-mkhtml2.in41
1 files changed, 41 insertions, 0 deletions
diff --git a/gtkdoc-mkhtml2.in b/gtkdoc-mkhtml2.in
new file mode 100644
index 0000000..b532a30
--- /dev/null
+++ b/gtkdoc-mkhtml2.in
@@ -0,0 +1,41 @@
+#!@PYTHON@
+# -*- python; coding: utf-8 -*-
+#
+# gtk-doc - GTK DocBook documentation generator.
+# Copyright (C) 2018 Stefan Sauer
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+import argparse
+import sys
+sys.path.append('@PYTHON_PACKAGE_DIR@')
+
+from gtkdoc import common, config, mkhtml2
+
+if __name__ == '__main__':
+ parser = argparse.ArgumentParser(
+ description='gtkdoc-mkhtml version %s - generate documentation in html format' % config.version)
+ parser.add_argument('--version', action='version', version=config.version)
+ parser.add_argument('args', nargs='*',
+ help='DRIVER_FILE')
+
+ options = parser.parse_args()
+ if len(options.args) != 1:
+ sys.exit('Too few arguments')
+
+ common.setup_logging()
+
+ sys.exit(mkhtml2.run(options))