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



commit ef19e53f05ab9699ed108e20f337bfbbadca592e
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

 meson.build                            |  2 +-
 src/extensions-tool/man/meson.build    |  4 ++--
 src/extensions-tool/man/stylesheet.xsl | 27 ---------------------------
 3 files changed, 3 insertions(+), 30 deletions(-)
---
diff --git a/meson.build b/meson.build
index 33ae12d3c2..eac281d877 100644
--- a/meson.build
+++ b/meson.build
@@ -143,7 +143,7 @@ if get_option('man')
   xsltproc = find_program('xsltproc')
 
   if get_option('extensions_tool')
-    a2x = find_program('a2x')
+    asciidoctor = find_program('asciidoctor')
   endif
 
   subdir('man')
diff --git a/src/extensions-tool/man/meson.build b/src/extensions-tool/man/meson.build
index cca6fc49f7..5de246d6b5 100644
--- a/src/extensions-tool/man/meson.build
+++ b/src/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
 )


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