meson: use meson feed feature for scdoc input

Removes the need for a shell dependency.
This commit is contained in:
sewn 2023-06-14 12:26:19 +00:00
parent 8859e134ef
commit 16872ecc41
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -53,6 +53,7 @@
### Changed ### Changed
* Minimum required meson version is now 0.59 ([#1371][1371]).
* Kitty keyboard protocol: F3 is now encoded as `CSI 13~` instead of * Kitty keyboard protocol: F3 is now encoded as `CSI 13~` instead of
`CSI R`. The kitty keyboard protocol originally allowed F3 to be `CSI R`. The kitty keyboard protocol originally allowed F3 to be
encoded as `CSI R`, but this was removed from the specification encoded as `CSI R`, but this was removed from the specification
@ -65,6 +66,7 @@
background color is the **default** background color) background color is the **default** background color)
([#1360][1360]). ([#1360][1360]).
[1371]: https://codeberg.org/dnkl/foot/pulls/1371
[1360]: https://codeberg.org/dnkl/foot/issues/1360 [1360]: https://codeberg.org/dnkl/foot/issues/1360

View file

@ -1,5 +1,3 @@
sh = find_program('sh', native: true)
scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true) scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true)
if utmp_backend != 'none' if utmp_backend != 'none'
@ -43,8 +41,9 @@ foreach man_src : [{'name': 'foot', 'section' : 1},
out, out,
output: out, output: out,
input: preprocessed, input: preprocessed,
command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.full_path())], command: scdoc_prog.full_path(),
capture: true, capture: true,
feed: true,
install: true, install: true,
install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section))) install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section)))
endforeach endforeach

View file

@ -1,7 +1,7 @@
project('foot', 'c', project('foot', 'c',
version: '1.14.0', version: '1.14.0',
license: 'MIT', license: 'MIT',
meson_version: '>=0.58.0', meson_version: '>=0.59.0',
default_options: [ default_options: [
'c_std=c11', 'c_std=c11',
'warning_level=1', 'warning_level=1',