diff --git a/doc/fbcli.xml b/doc/fbcli.xml new file mode 100644 index 0000000..4bd1b7b --- /dev/null +++ b/doc/fbcli.xml @@ -0,0 +1,99 @@ + + + +fbcli +feedbackd + + +Developer +Guido +Günther + + + + + +fbcli +1 +User Commands + + + +fbcli +Emit events to feedbackd + + + + +fbcli +OPTION + + + +Description +fbcli can be used to submit events to feedbackd +to trigger audio, visual or haptic feedback. + + + +Options + + + +, + +print help and exit + + + + + + + + Submit the given event to feedbackd. Valid events are + listes in the event naming spec at + + + + + + + + + The timeout in seconds after which feedback for the given event should + be stopped. + + + + + + + + The feedback profile (full, quiet, silent) + to use for the given event. + + + + + + + + Maximum timout to wait for the feedback for the given event to end and + fbcli to exit. + + + + + + + + +See also + + +feedbackd +1 + + + + diff --git a/doc/meson.build b/doc/meson.build index 1bc5648..b7a50c2 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -36,5 +36,34 @@ gnome.gtkdoc('libfeedback', install_dir: 'libfeedback', content_files: content_files, install: true) +endif +if get_option('man') + manpages = [ + 'fbcli', + ] + + xsltproc = find_program('xsltproc', required : true) + xsltproc_command = [ + xsltproc, + '--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', + '-o', '@OUTPUT@', + 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', + '@INPUT@', + ] + man1_dir = get_option('mandir') + '/man1' + + foreach page : manpages + custom_target(page + '-man', + input : page + '.xml', + output : page + '.1', + command: xsltproc_command, + install: true, + install_dir: man1_dir) + endforeach endif diff --git a/meson.build b/meson.build index 50e9e68..634eefe 100644 --- a/meson.build +++ b/meson.build @@ -112,6 +112,7 @@ summary = [ '', ' Daemon: @0@'.format(get_option('daemon')), ' Documentation: @0@'.format(get_option('gtk_doc')), + ' Manual pages: @0@'.format(get_option('man')), ' Introspection: @0@'.format(introspection), ' Vapi: @0@'.format(get_option('vapi')), ' Tests: @0@'.format(get_option('tests')), diff --git a/meson_options.txt b/meson_options.txt index 2ff7306..4d1b4f0 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -7,6 +7,9 @@ option('daemon', option('gtk_doc', type: 'boolean', value: false, description: 'Whether to generate the API reference for Libfeedback') +option('man', + type: 'boolean', value : false, + description : 'generate man pages (requires xsltproc)') option('tests', type: 'boolean', value: true, description: 'Whether to compile unit tests')