build: don't explicitly search for sh

This removes the "Program sh found" line in the build logs, and
should not change anything else.
This commit is contained in:
Simon Ser 2021-04-07 13:36:41 +02:00 committed by Kenny Levinsen
parent 392da918e6
commit ee40913810

View file

@ -214,7 +214,6 @@ else
endif
if scdoc.found()
sh = find_program('sh', native: true)
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
mandir = get_option('mandir')
@ -228,7 +227,7 @@ if scdoc.found()
input: 'man/' + src,
output: output,
command: [
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), output)
'sh', '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), output)
],
install: true,
install_dir: '@0@/man@1@'.format(mandir, section)