summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2021-08-22 12:30:14 +0200
committerDave Davenport <qball@blame.services>2021-08-22 12:30:14 +0200
commit3e0175d2b64b59cb9535f5cc7f9b90f93c4fd4bd (patch)
treecf7dfee5d6cdcbc408773764b088dc92eeefce78
parent1050c20c10894e4b801df3ee8549739131e29b2b (diff)
[Doc][Meson] use go-md2man for update-manpage target
-rw-r--r--doc/meson.build6
-rwxr-xr-xdoc/meson_build_manpages.sh11
2 files changed, 15 insertions, 2 deletions
diff --git a/doc/meson.build b/doc/meson.build
index 7d46bf57..87d9571b 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -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
diff --git a/doc/meson_build_manpages.sh b/doc/meson_build_manpages.sh
new file mode 100755
index 00000000..a30821ed
--- /dev/null
+++ b/doc/meson_build_manpages.sh
@@ -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