[gnome-shell/wip/jtojnar/adoc: 2/2] extension-tool: Use asciidoctor for manpage



commit d3f85ae6eafd35fe066138149f7263ee3f89c4d8
Author: Jan Tojnar <jtojnar gmail com>
Date:   Tue Feb 11 03:42:42 2020 +0100

    extension-tool: Use asciidoctor for manpage
    
    The Python implementation of Asciidoc is abandoned and stuck with Python 2.
    Asciidoctor is a maintained implementation written in Ruby.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/992

 subprojects/extensions-tool/man/meson.build    |  4 ++--
 subprojects/extensions-tool/man/stylesheet.xsl | 27 --------------------------
 subprojects/extensions-tool/meson.build        |  2 +-
 3 files changed, 3 insertions(+), 30 deletions(-)
---
diff --git a/subprojects/extensions-tool/man/meson.build b/subprojects/extensions-tool/man/meson.build
index cca6fc49f7..5de246d6b5 100644
--- a/subprojects/extensions-tool/man/meson.build
+++ b/subprojects/extensions-tool/man/meson.build
@@ -1,7 +1,7 @@
 custom_target('gnome-extensions.1',
-  input: ['gnome-extensions.adoc', 'stylesheet.xsl'],
+  input: 'gnome-extensions.adoc',
   output: 'gnome-extensions.1',
-  command: [a2x, '-D', '@OUTDIR@', '--xsl-file', '@INPUT1@', '-f', 'manpage', '@INPUT0@'],
+  command: [asciidoctor, '-D', '@OUTDIR@', '-b', 'manpage', '@INPUT@'],
   install_dir: mandir + '/man1',
   install: true
 )
diff --git a/subprojects/extensions-tool/meson.build b/subprojects/extensions-tool/meson.build
index ca7e67ce22..7f7d8e4e98 100644
--- a/subprojects/extensions-tool/meson.build
+++ b/subprojects/extensions-tool/meson.build
@@ -36,7 +36,7 @@ if bash_completion.found()
 endif
 
 if get_option('man')
-  a2x = find_program('a2x')
+  asciidoctor = find_program('asciidoctor')
 
   subdir('man')
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]