mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
[Doc][Meson] use go-md2man for update-manpage target
This commit is contained in:
parent
3e0b4cdc46
commit
bec3f4f557
2 changed files with 15 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
||||||
ronn = find_program('ronn', required: false)
|
ronn = find_program('go-md2man', required: false)
|
||||||
if ronn.found()
|
if ronn.found()
|
||||||
run_target('update-manpage',
|
run_target('update-manpage',
|
||||||
command: [ ronn, '--roff', files(
|
command: [ 'meson_build_manpages.sh', files(
|
||||||
'rofi.1.markdown',
|
'rofi.1.markdown',
|
||||||
'rofi-theme-selector.1.markdown',
|
'rofi-theme-selector.1.markdown',
|
||||||
'rofi-theme.5.markdown',
|
'rofi-theme.5.markdown',
|
||||||
|
'rofi-script.5.markdown',
|
||||||
|
'rofi-sensible-terminal.1.markdown'
|
||||||
)]
|
)]
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
11
doc/meson_build_manpages.sh
Executable file
11
doc/meson_build_manpages.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
## Did not get this working in meson directly.
|
||||||
|
## not via generator or custom_target.
|
||||||
|
|
||||||
|
pushd "${MESON_SOURCE_ROOT}"
|
||||||
|
|
||||||
|
for a in $@
|
||||||
|
do
|
||||||
|
go-md2man -in $a -out ${a%.markdown}
|
||||||
|
done
|
Loading…
Reference in a new issue