mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Doc][Meson] use go-md2man for update-manpage target
This commit is contained in:
parent
1050c20c10
commit
3e0175d2b6
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()
|
||||
run_target('update-manpage',
|
||||
command: [ ronn, '--roff', files(
|
||||
command: [ 'meson_build_manpages.sh', files(
|
||||
'rofi.1.markdown',
|
||||
'rofi-theme-selector.1.markdown',
|
||||
'rofi-theme.5.markdown',
|
||||
'rofi-script.5.markdown',
|
||||
'rofi-sensible-terminal.1.markdown'
|
||||
)]
|
||||
)
|
||||
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