man: Add simple seatd(1) page
This commit is contained in:
parent
48e712ffd9
commit
b312fbfb5e
3 changed files with 86 additions and 0 deletions
26
meson.build
26
meson.build
|
@ -180,6 +180,32 @@ test(
|
|||
)
|
||||
)
|
||||
|
||||
scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7')
|
||||
|
||||
if scdoc.found()
|
||||
sh = find_program('sh')
|
||||
|
||||
man_pages = ['seatd.1.scd']
|
||||
|
||||
mandir = get_option('mandir')
|
||||
|
||||
foreach src : man_pages
|
||||
topic = src.split('.')[0]
|
||||
section = src.split('.')[1]
|
||||
output = '@0@.@1@'.format(topic, section)
|
||||
|
||||
custom_target(
|
||||
output,
|
||||
input: 'man/' + src,
|
||||
output: output,
|
||||
command: [
|
||||
sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.get_pkgconfig_variable('scdoc'), output)
|
||||
],
|
||||
install: true,
|
||||
install_dir: '@0@/man@1@'.format(mandir, section)
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
|
||||
summary({
|
||||
'seatd': get_option('seatd').enabled() ? 1 : 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue