Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
build: stop using sh to invoke scdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Feb 8, 2022
1 parent 69f874d commit 3c55e3f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(
'c',
version: '1.3.2',
license: 'MIT',
meson_version: '>=0.58.0',
meson_version: '>=0.59.0',
default_options: ['c_std=c11', 'warning_level=3', 'werror=true'],
)

Expand Down Expand Up @@ -66,12 +66,8 @@ executable(
scdoc = find_program('scdoc', required: get_option('man-pages'))

if scdoc.found()
sh = find_program('sh')

man_pages = ['grim.1.scd']

mandir = get_option('mandir')

foreach src : man_pages
topic = src.split('.')[0]
section = src.split('.')[1]
Expand All @@ -81,11 +77,11 @@ if scdoc.found()
output,
input: src,
output: output,
command: [
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output)
],
command: scdoc,
feed: true,
capture: true,
install: true,
install_dir: '@0@/man@1@'.format(mandir, section)
install_dir: '@0@/man@1@'.format(get_option('mandir'), section),
)
endforeach
endif

0 comments on commit 3c55e3f

Please sign in to comment.