]> git.mdlowis.com Git - proto/labwc.git/commitdiff
build: remove scdoc stdin/stdout hack
authorJohan Malm <jgm323@gmail.com>
Wed, 22 Sep 2021 19:21:00 +0000 (20:21 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 22 Sep 2021 19:21:00 +0000 (20:21 +0100)
From version 0.59.0, meson supports feeding the input file as stdin.
See sway@9727db67

docs/meson.build
meson.build

index e85843496aa71b817fde28c7b8c8036ec57bb6e9..67fcc1f80af3b5d0c05e3b9769934cefc5243b29 100644 (file)
@@ -1,7 +1,6 @@
 scdoc = find_program('scdoc', required: get_option('man-pages'))
 
 if scdoc.found()
-  sh = find_program('sh', native: true)
   sections = [
     '.1',
     '-actions.5',
@@ -16,8 +15,9 @@ if scdoc.found()
     custom_target(
       manpage,
       input: markdown,
-      command: [sh, '-c', 'scdoc < @INPUT@'],
       output: manpage,
+      command: scdoc,
+      feed: true,
       capture: true,
       install: true,
       install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
index b15ab8324c35c0e20178d34a20d20022555be6b5..9ca039e8761895c9a51aa7e5d98825f8cfef5a98 100644 (file)
@@ -3,6 +3,7 @@ project(
   'c',
   version: '0.3.0',
   license: 'GPL-2.0-only',
+  meson_version: '>=0.59.0',
   default_options: [
     'c_std=c11',
     'warning_level=2',