mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
update man pages without scripts
Signed-off-by: Dave Davenport <qball@gmpclient.org>
This commit is contained in:
parent
45c4a12daa
commit
c980139b7e
3 changed files with 20 additions and 25 deletions
|
@ -668,7 +668,6 @@ EXTRA_DIST += \
|
||||||
subprojects/libgwater/nl/libgwater-nl.c \
|
subprojects/libgwater/nl/libgwater-nl.c \
|
||||||
subprojects/libgwater/alsa-mixer/libgwater-alsa-mixer.h \
|
subprojects/libgwater/alsa-mixer/libgwater-alsa-mixer.h \
|
||||||
subprojects/libgwater/alsa-mixer/libgwater-alsa-mixer.c \
|
subprojects/libgwater/alsa-mixer/libgwater-alsa-mixer.c \
|
||||||
doc/meson_build_manpages.sh \
|
|
||||||
data/rofi.png\
|
data/rofi.png\
|
||||||
meson_options.txt \
|
meson_options.txt \
|
||||||
meson.build
|
meson.build
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
gomd2man = find_program('go-md2man', required: false)
|
gomd2man = find_program('go-md2man', required: false)
|
||||||
if gomd2man.found()
|
if gomd2man.found()
|
||||||
run_target('update-manpage',
|
man_targets = []
|
||||||
command: [ 'meson_build_manpages.sh', files(
|
foreach f: [
|
||||||
'rofi.1.markdown',
|
'rofi.1',
|
||||||
'rofi-theme-selector.1.markdown',
|
'rofi-theme-selector.1',
|
||||||
'rofi-theme.5.markdown',
|
'rofi-theme.5',
|
||||||
'rofi-dmenu.5.markdown',
|
'rofi-dmenu.5',
|
||||||
'rofi-debugging.5.markdown',
|
'rofi-debugging.5',
|
||||||
'rofi-keys.5.markdown',
|
'rofi-keys.5',
|
||||||
'rofi-script.5.markdown',
|
'rofi-script.5',
|
||||||
'rofi-sensible-terminal.1.markdown'
|
'rofi-sensible-terminal.1'
|
||||||
)]
|
]
|
||||||
)
|
man_targets += custom_target(f,
|
||||||
|
input: '.'.join([f, 'markdown']),
|
||||||
|
output: f,
|
||||||
|
command: [ 'go-md2man',
|
||||||
|
'-in', files('.'.join([f,'markdown'])),
|
||||||
|
'-out', files(f)
|
||||||
|
])
|
||||||
|
endforeach
|
||||||
|
run_target('update-manpage', command: ['true'], depends: man_targets)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
doxy_conf = configuration_data()
|
doxy_conf = configuration_data()
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
## Did not get this working in meson directly.
|
|
||||||
## not via generator or custom_target.
|
|
||||||
|
|
||||||
|
|
||||||
pushd "${MESON_BUILD_ROOT}"
|
|
||||||
|
|
||||||
for a in $@
|
|
||||||
do
|
|
||||||
go-md2man -in "$a" -out ${a%.markdown}
|
|
||||||
done
|
|
Loading…
Reference in a new issue