diff options
| author | sewn <sewn@disroot.org> | 2023-06-14 12:26:19 +0000 |
|---|---|---|
| committer | sewn <sewn@disroot.org> | 2023-06-14 17:15:20 +0000 |
| commit | 16872ecc4137a5a58f9da8e62990d5587afbec21 (patch) | |
| tree | d076b5ea04e76f923ee46e16d269aeabe9dc03ea /doc | |
| parent | Fix non UTF-8 locale complaint (diff) | |
meson: use meson feed feature for scdoc input
Removes the need for a shell dependency.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/meson.build | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/meson.build b/doc/meson.build index 17f09f39..37972652 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -1,5 +1,3 @@ -sh = find_program('sh', native: true) - scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true) if utmp_backend != 'none' @@ -43,8 +41,9 @@ foreach man_src : [{'name': 'foot', 'section' : 1}, out, output: out, input: preprocessed, - command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.full_path())], + command: scdoc_prog.full_path(), capture: true, + feed: true, install: true, install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section))) endforeach |
