build: don't use sh for scdoc
This commit is contained in:
parent
d9f9fb51ff
commit
63935ba0fb
11
meson.build
11
meson.build
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue