build: stop using sh to generate man pages

This commit is contained in:
Simon Ser 2022-02-02 15:44:41 +01:00
parent 55c018a350
commit c80733a06a

View File

@ -3,7 +3,7 @@ project(
'c', 'c',
version: '1.6', version: '1.6',
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=2', 'warning_level=2',
@ -157,7 +157,6 @@ install_data(
) )
if scdoc.found() if scdoc.found()
sh = find_program('sh')
mandir = get_option('mandir') mandir = get_option('mandir')
man_files = [ man_files = [
'swaylock.1.scd', 'swaylock.1.scd',
@ -171,9 +170,9 @@ if scdoc.found()
output, output,
input: filename, input: filename,
output: output, output: output,
command: [ command: scdoc,
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.full_path(), output) feed: true,
], capture: true,
install: true, install: true,
install_dir: '@0@/man@1@'.format(mandir, section) install_dir: '@0@/man@1@'.format(mandir, section)
) )