aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-26 21:20:05 +0000
committerKenny Levinsen <kl@kl.wtf>2021-11-28 15:41:53 +0100
commitf381e22955d9bcffd1c47c70626f22972e5af1db (patch)
treef8988f1b75d43c37ebf53ad0590cc0644d0fb263
parentd92fa01f884e94262e4c7184be62efaf8a00a634 (diff)
build: don't use sh for scdoc
Just use the built-in feed/capture Meson options instead.
-rw-r--r--meson.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index b5d00c6..c313294 100644
--- a/meson.build
+++ b/meson.build
@@ -247,7 +247,6 @@ else
endif
if scdoc.found()
- scdoc_prog = find_program(scdoc.get_variable(pkgconfig: 'scdoc'), native: true)
mandir = get_option('mandir')
foreach src : ['seatd.1.scd', 'seatd-launch.1.scd']
@@ -259,9 +258,9 @@ if scdoc.found()
output,
input: 'man/' + src,
output: output,
- command: [
- 'sh', '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.full_path(), output)
- ],
+ command: scdoc.get_variable(pkgconfig: 'scdoc'),
+ feed: true,
+ capture: true,
install: true,
install_dir: '@0@/man@1@'.format(mandir, section)
)