diff options
author | Jens Georg <mail@jensge.org> | 2019-05-27 23:03:40 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2019-05-27 23:03:44 +0200 |
commit | 0ae50ccf76077e337d7dd7ebe3bb720e73e42039 (patch) | |
tree | 50d7e7e747985e67b6b80ef9b8e5b92da46d6ba9 /doc | |
parent | 1873a6af2b015d313369e676998f24e80a55f428 (diff) | |
download | gupnp-0ae50ccf76077e337d7dd7ebe3bb720e73e42039.tar.gz |
doc: Generate and install gupnp-binding-tool manpage
Fixes #5
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gupnp-binding-tool.xml | 2 | ||||
-rw-r--r-- | doc/meson.build | 34 |
2 files changed, 34 insertions, 2 deletions
diff --git a/doc/gupnp-binding-tool.xml b/doc/gupnp-binding-tool.xml index f1f7b40..e45f494 100644 --- a/doc/gupnp-binding-tool.xml +++ b/doc/gupnp-binding-tool.xml @@ -6,7 +6,7 @@ <refentrytitle>gupnp-binding-tool-1.2</refentrytitle> <manvolnum>1</manvolnum> <refmiscinfo class="source">GUPnP</refmiscinfo> - <refmiscinfo class="version"><xi:include href="version.xml" parse="text"/></refmiscinfo> + <refmiscinfo class="version"><xi:include href="version.xml" parse="text"><xi:fallback /></xi:include></refmiscinfo> </refmeta> <refnamediv> diff --git a/doc/meson.build b/doc/meson.build index 54bf067..478650b 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -1,6 +1,6 @@ entities = configuration_data() entities.set('VERSION', meson.project_version()) -configure_file(input: 'version.xml.in', +version_xml = configure_file(input: 'version.xml.in', output: 'version.xml', configuration: entities) @@ -26,3 +26,35 @@ gnome.gtkdoc('gupnp', 'gupnp-types-private.h' ], install : true) + +xsltproc = find_program('xsltproc', required: false) +if xsltproc.found() + xlstproc_flags = [ + '--nonet', + '--xinclude', + '--path', '@0@:@1@'.format(meson.current_source_dir(), meson.current_build_dir()), + '--stringparam', 'man.output.quietly', '1', + '--stringparam', 'funcsynopsis.style', 'ansi', + '--stringparam', 'man.th.extra1.suppress', '1', + '--stringparam', 'man.authors.section.enabled', '1', + '--stringparam', 'man.copyright.section.enabled', '1', + ] + + xsltproc_args = [ + xsltproc, + xlstproc_flags, + '-o', '@OUTPUT@', + 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', + '@INPUT@' + ] + + custom_target( + 'man 1 pages', + input: 'gupnp-binding-tool.xml', + output: 'gupnp-binding-tool-1.2.1', + command: xsltproc_args, + depend_files : version_xml, + install: true, + install_dir: join_paths(get_option('mandir'), 'man1') + ) +endif |