diff options
author | Jens Georg <mail@jensge.org> | 2018-11-28 19:39:06 +0000 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2018-11-28 19:39:06 +0000 |
commit | 86bfaaddc3288f301565093278c58c5d595049ec (patch) | |
tree | 07371b988003c9bddfd784630443b91a58c7a3a3 /doc/man | |
parent | 502ed4cb90c77df1407b6619e6a2cc307586403f (diff) | |
download | rygel-86bfaaddc3288f301565093278c58c5d595049ec.tar.gz |
Port build system to meson
Diffstat (limited to 'doc/man')
-rw-r--r-- | doc/man/meson.build | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/man/meson.build b/doc/man/meson.build new file mode 100644 index 00000000..c905df2f --- /dev/null +++ b/doc/man/meson.build @@ -0,0 +1,44 @@ +xsltproc = find_program('xsltproc', required: false) + +if xsltproc.found() + xlstproc_flags = [ + '--nonet', + '--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@', + ] + + man_input_files = [ + 'rygel.xml', + 'rygel.conf.xml' + ] + + man_output_files = [ + 'rygel.1', + 'rygel.conf.5' + ] + + custom_target('man 1 pages', + input: 'rygel.xml', + output: 'rygel.1', + command: xsltproc_args, + install: true, + install_dir: join_paths(get_option('mandir'), 'man1')) + + custom_target('man 5 pages', + input: 'rygel.conf.xml', + output: 'rygel.conf.5', + command: xsltproc_args, + install: true, + install_dir: join_paths(get_option('mandir'), 'man5')) +endif |