Skip to content

Commit

Permalink
update man pages without scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Davenport <[email protected]>
  • Loading branch information
nick87720z authored and DaveDavenport committed Jul 22, 2023
1 parent 45c4a12 commit c980139
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 25 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ EXTRA_DIST += \
subprojects/libgwater/nl/libgwater-nl.c \
subprojects/libgwater/alsa-mixer/libgwater-alsa-mixer.h \
subprojects/libgwater/alsa-mixer/libgwater-alsa-mixer.c \
doc/meson_build_manpages.sh \
data/rofi.png\
meson_options.txt \
meson.build
Expand Down
32 changes: 20 additions & 12 deletions doc/meson.build
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
gomd2man = find_program('go-md2man', required: false)
if gomd2man.found()
run_target('update-manpage',
command: [ 'meson_build_manpages.sh', files(
'rofi.1.markdown',
'rofi-theme-selector.1.markdown',
'rofi-theme.5.markdown',
'rofi-dmenu.5.markdown',
'rofi-debugging.5.markdown',
'rofi-keys.5.markdown',
'rofi-script.5.markdown',
'rofi-sensible-terminal.1.markdown'
)]
)
man_targets = []
foreach f: [
'rofi.1',
'rofi-theme-selector.1',
'rofi-theme.5',
'rofi-dmenu.5',
'rofi-debugging.5',
'rofi-keys.5',
'rofi-script.5',
'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

doxy_conf = configuration_data()
Expand Down
12 changes: 0 additions & 12 deletions doc/meson_build_manpages.sh

This file was deleted.

0 comments on commit c980139

Please sign in to comment.