diff options
| author | Simon Ser <contact@emersion.fr> | 2022-02-02 15:44:41 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-02-02 15:44:41 +0100 |
| commit | c80733a06a9bd99c9125a6c747a6b20b3258f542 (patch) | |
| tree | 69b5df6661e081d902cca5278ac4b4f32c953cb7 | |
| parent | 55c018a350d52efe7d0db168d15636b900dd9ce4 (diff) | |
build: stop using sh to generate man pages
| -rw-r--r-- | meson.build | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 2f66a7a..48c43fc 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project( 'c', version: '1.6', license: 'MIT', - meson_version: '>=0.58.0', + meson_version: '>=0.59.0', default_options: [ 'c_std=c11', 'warning_level=2', @@ -157,7 +157,6 @@ install_data( ) if scdoc.found() - sh = find_program('sh') mandir = get_option('mandir') man_files = [ 'swaylock.1.scd', @@ -171,9 +170,9 @@ if scdoc.found() output, input: filename, output: output, - command: [ - sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.full_path(), output) - ], + command: scdoc, + feed: true, + capture: true, install: true, install_dir: '@0@/man@1@'.format(mandir, section) ) |
