diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-08-11 11:45:48 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2017-10-31 18:20:11 +0100 |
commit | 899e2a934553b5d97f04d2268421eae3cf8a0197 (patch) | |
tree | 57fbcdaf28c79ebeb203232b28783f6786845654 /man | |
parent | 5db165178a2528802edbe2eaf34ea2a63a78cc02 (diff) | |
download | gvfs-899e2a934553b5d97f04d2268421eae3cf8a0197.tar.gz |
build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
https://bugzilla.gnome.org/show_bug.cgi?id=786149
Diffstat (limited to 'man')
-rw-r--r-- | man/Makefile.am | 1 | ||||
-rw-r--r-- | man/meson.build | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index 24889250..086ecb60 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -94,6 +94,7 @@ EXTRA_DIST = \ gvfsd.xml \ gvfs-less.xml \ gvfs.xml \ + meson.build \ $(NULL) CLEANFILES = \ diff --git a/man/meson.build b/man/meson.build new file mode 100644 index 00000000..870d16d4 --- /dev/null +++ b/man/meson.build @@ -0,0 +1,78 @@ +xsltproc = find_program('xsltproc', required: false) +assert(xsltproc.found(), 'xsltproc is required for enable-man') + +xsltproc_cmd = [ + xsltproc, + '--output', '@OUTPUT@', + '--nonet', + '--stringparam', 'man.output.quietly', '1', + '--stringparam', 'funcsynopsis.style', 'ansi', + '--stringparam', 'man.th.extra1.suppress', '1', + '--stringparam', 'man.authors.section.enabled', '0', + '--stringparam', 'man.copyright.section.enabled', '0', + 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', + '@INPUT@' +] + +mans = [ + ['gvfs-cat', 'gio cat'], + ['gvfs-copy', 'gio copy'], + ['gvfs-info', 'gio info'], + ['gvfs-less', ''], + ['gvfs-ls', 'gio list'], + ['gvfs-mime', 'gio mime'], + ['gvfs-mkdir', 'gio mkdir'], + ['gvfs-monitor-dir', 'gio monitor'], + ['gvfs-monitor-file', 'gio monitor'], + ['gvfs-mount', 'gio mount'], + ['gvfs-move', 'gio move'], + ['gvfs-open', 'gio open'], + ['gvfs-rename', 'gio rename'], + ['gvfs-rm', 'gio remove'], + ['gvfs-save', 'gio save'], + ['gvfs-set-attribute', 'gio set'], + ['gvfs-trash', 'gio trash'], + ['gvfs-tree', 'gio tree'], + ['gvfsd', ''], + ['gvfsd-fuse', ''], + ['gvfsd-metadata', ''] +] + +foreach man: mans + if man[1].strip() == '' + xml = man[0] + '.xml' + else + conf = configuration_data() + conf.set('original', man[0]) + conf.set('replacement', man[1]) + + xml = configure_file( + input: 'deprecated.xml.in', + output: man[0] + '.xml', + configuration: conf + ) + endif + + output = man[0] + '.1' + + custom_target( + output, + input: xml, + output: output, + command: xsltproc_cmd, + install: true, + install_dir: join_paths(gvfs_mandir, 'man1') + ) +endforeach + +man = 'gvfs' +output = man + '.7' + +custom_target( + output, + input: man + '.xml', + output: output, + command: xsltproc_cmd, + install: true, + install_dir: join_paths(gvfs_mandir, 'man7') +) |