mirror of
https://github.com/labwc/labwc.git
synced 2026-03-01 01:40:24 -05:00
Convert man pages from md to scd
This commit is contained in:
parent
db4249dcc4
commit
5a36fef547
9 changed files with 244 additions and 298 deletions
|
|
@ -1,14 +1,15 @@
|
|||
pandoc = find_program('pandoc', required: get_option('man-pages'))
|
||||
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
||||
|
||||
sections = ['.1', '-config.5', '-theme.5', '-actions.5']
|
||||
|
||||
if pandoc.found()
|
||||
if scdoc.found()
|
||||
sh = find_program('sh', native: true)
|
||||
sections = ['.1', '-config.5', '-theme.5', '-actions.5']
|
||||
foreach s : sections
|
||||
markdown = files('labwc' + s + '.md')
|
||||
markdown = 'labwc' + s + '.scd'
|
||||
manpage = 'labwc' + s
|
||||
custom_target(
|
||||
manpage,
|
||||
command: [pandoc,'-s','-t','man',markdown],
|
||||
input: markdown,
|
||||
command: [sh, '-c', 'scdoc < @INPUT@'],
|
||||
output: manpage,
|
||||
capture: true,
|
||||
install: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue