From version 0.59.0, meson supports feeding the input file as stdin.
See sway@
9727db67
scdoc = find_program('scdoc', required: get_option('man-pages'))
if scdoc.found()
- sh = find_program('sh', native: true)
sections = [
'.1',
'-actions.5',
custom_target(
manpage,
input: markdown,
- command: [sh, '-c', 'scdoc < @INPUT@'],
output: manpage,
+ command: scdoc,
+ feed: true,
capture: true,
install: true,
install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
'c',
version: '0.3.0',
license: 'GPL-2.0-only',
+ meson_version: '>=0.59.0',
default_options: [
'c_std=c11',
'warning_level=2',