diff options
author | Jens Georg <mail@jensge.org> | 2020-12-27 12:52:06 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2020-12-27 12:52:06 +0100 |
commit | 66ff912d8fbe8ccd787006d75b91d1c19472893e (patch) | |
tree | 0d4f286113f0e9a38262199c9a9ddfc2fe0cd5f5 /doc | |
parent | ee68c4597f3f50aa38251f0c74452f046b5e4782 (diff) | |
download | rygel-66ff912d8fbe8ccd787006d75b91d1c19472893e.tar.gz |
Revert "build: Add man_pages build options"
This reverts commit ee68c4597f3f50aa38251f0c74452f046b5e4782.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/meson.build | 98 | ||||
-rw-r--r-- | doc/meson.build | 5 |
2 files changed, 40 insertions, 63 deletions
diff --git a/doc/man/meson.build b/doc/man/meson.build index 4c92eab2..ef3fcfbf 100644 --- a/doc/man/meson.build +++ b/doc/man/meson.build @@ -1,63 +1,43 @@ xsltproc = find_program('xsltproc', required: false) if xsltproc.found() - stylesheet = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' - - xlstproc_flags = [ - '--nonet', - '--stringparam', 'man.output.quietly', '1', - '--stringparam', 'funcsynopsis.style', 'ansi', - '--stringparam', 'man.authors.section.enabled', '1', - '--stringparam', 'man.copyright.section.enabled', '1', - ] - - xsltproc_args = [ - xsltproc, - xlstproc_flags, - '-o', '@OUTPUT@', - stylesheet, - '@INPUT@', - ] - - man_input_files = [ - 'rygel.xml', - 'rygel.conf.xml' - ] - - man_output_files = [ - 'rygel.1', - 'rygel.conf.5' - ] - - r = run_command( - [ - xsltproc, - xlstproc_flags, - '-o', '/dev/null', - stylesheet, - 'rygel.xml' - ] - ) - - if (r.returncode() == 0) - 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') - ) - else - error('Cannot bulid man pages, failed to run xsltproc') - endif + xlstproc_flags = [ + '--nonet', + '--stringparam', 'man.output.quietly', '1', + '--stringparam', 'funcsynopsis.style', 'ansi', + '--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 diff --git a/doc/meson.build b/doc/meson.build index 91c08fae..41c733e5 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -1,5 +1,2 @@ -if get_option('man_pages') - subdir('man') -endif - +subdir('man') subdir('reference') |