mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
meson: check scdoc version
This commit is contained in:
parent
88b283c557
commit
f98410c090
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@ conf_data.set10('HAVE_SYSTEMD', systemd.found())
|
||||||
conf_data.set10('HAVE_ELOGIND', elogind.found())
|
conf_data.set10('HAVE_ELOGIND', elogind.found())
|
||||||
conf_data.set10('HAVE_TRAY', have_tray)
|
conf_data.set10('HAVE_TRAY', have_tray)
|
||||||
|
|
||||||
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
scdoc = dependency('scdoc', version: '>=1.9', native: true, required: get_option('man-pages'))
|
||||||
if scdoc.found()
|
if scdoc.found()
|
||||||
|
scdoc_prog = find_program('scdoc')
|
||||||
sh = find_program('sh')
|
sh = find_program('sh')
|
||||||
mandir = get_option('mandir')
|
mandir = get_option('mandir')
|
||||||
man_files = [
|
man_files = [
|
||||||
|
@ -120,7 +121,7 @@ if scdoc.found()
|
||||||
input: filename,
|
input: filename,
|
||||||
output: output,
|
output: output,
|
||||||
command: [
|
command: [
|
||||||
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output)
|
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), output)
|
||||||
],
|
],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: '@0@/man@1@'.format(mandir, section)
|
install_dir: '@0@/man@1@'.format(mandir, section)
|
||||||
|
|
Loading…
Reference in a new issue