build: don't use sh for scdoc

pull/2926/head
Aleksei Bavshin 2024-02-17 00:58:39 -08:00
parent d9f9fb51ff
commit 63935ba0fb
No known key found for this signature in database
GPG Key ID: 4F071603387A382A
1 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,7 @@ project(
'waybar', 'cpp', 'c',
version: '0.9.24',
license: 'MIT',
meson_version: '>= 0.56.0',
meson_version: '>= 0.59.0',
default_options : [
'cpp_std=c++20',
'buildtype=release',
@ -435,9 +435,6 @@ install_data(
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man-pages'))
if scdoc.found()
scdoc_prog = find_program(scdoc.get_variable(pkgconfig: 'scdoc'), native: true)
sh = find_program('sh', native: true)
main_manpage = configure_file(
input: 'man/waybar.5.scd.in',
output: 'waybar.5.scd',
@ -510,9 +507,9 @@ if scdoc.found()
# drops the 'man' if `path` is an absolute path
input: 'man' / path,
output: output,
command: [
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.full_path(), output)
],
command: scdoc.get_variable('scdoc'),
feed: true,
capture: true,
install: true,
install_dir: '@0@/man@1@'.format(mandir, section)
)