[gupnp] doc: Generate and install gupnp-binding-tool manpage
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] doc: Generate and install gupnp-binding-tool manpage
- Date: Mon, 27 May 2019 21:04:21 +0000 (UTC)
commit 0ae50ccf76077e337d7dd7ebe3bb720e73e42039
Author: Jens Georg <mail jensge org>
Date: Mon May 27 23:03:40 2019 +0200
doc: Generate and install gupnp-binding-tool manpage
Fixes #5
doc/gupnp-binding-tool.xml | 2 +-
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]