diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2017-03-21 22:29:17 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2017-03-21 22:29:17 +0100 |
commit | d77af067190867c04cb33fc43f26f943ba81f1b1 (patch) | |
tree | a45a5fbd9c8cea54ee057ce4f501605952655ab4 /gtkdoc-mkman.in | |
parent | 0101826fd7034f9001f260306cfb3f287d842e91 (diff) | |
download | gtk-doc-d77af067190867c04cb33fc43f26f943ba81f1b1.tar.gz |
sgml: remove docbook sgml tools
We remove jade support already a few versions ago. Also remove the tools we've
called from the pdf/man generators. For most of them configure was never
checking the pre-requisites.
Diffstat (limited to 'gtkdoc-mkman.in')
-rw-r--r-- | gtkdoc-mkman.in | 55 |
1 files changed, 19 insertions, 36 deletions
diff --git a/gtkdoc-mkman.in b/gtkdoc-mkman.in index 6667301..0f190b5 100644 --- a/gtkdoc-mkman.in +++ b/gtkdoc-mkman.in @@ -44,14 +44,6 @@ else: datarootdir='@datarootdir@' gtkdocdir='@datadir@/gtk-doc/data' -if "<?xml" in open(document).readline(): - is_xml=True - path_option='--path' -else: - is_xml=False - path_option='--directory' - - # we could do "$path_option $PWD " # to avoid needing rewriting entities that are copied from the header # into docs under xml @@ -60,32 +52,23 @@ if options.path == '': else: path_arg=[path_option, options.path] -# would it make sens to create man pages only for certain refentries +# would it make sense to create man pages only for certain refentries # e.g. for tools -if is_xml: - # see http://bugzilla.gnome.org/show_bug.cgi?id=467488 - subprocess.check_call([xsltproc] + path_arg +[ - '--nonet', - '--xinclude', - '--stringparam', - 'gtkdoc.bookname', - module, - '--stringparam', - 'gtkdoc.version', - version, - '--stringparam', - 'chunk.quietly ', - 'quiet', - '--stringparam', - 'chunker.output.quiet', - quiet, - 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', - document]) -else: - for i in glob('sgml/*.sgml'): - j = os.path.split(i)[1].replace('.sgml', '.man') - print("converting ", i, j) - subproject.check_call(['docbook-to-man', i], - stdout=open('man'+j), - stderr=open('man/%s.log' % j)) - +# see http://bugzilla.gnome.org/show_bug.cgi?id=467488 +subprocess.check_call([xsltproc] + path_arg +[ + '--nonet', + '--xinclude', + '--stringparam', + 'gtkdoc.bookname', + module, + '--stringparam', + 'gtkdoc.version', + version, + '--stringparam', + 'chunk.quietly ', + quiet, + '--stringparam', + 'chunker.output.quiet', + quiet, + 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', + document]) |