Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use asciidoctor to build the manpages #3

Closed
cbiedl opened this issue Dec 28, 2020 · 1 comment
Closed

Use asciidoctor to build the manpages #3

cbiedl opened this issue Dec 28, 2020 · 1 comment

Comments

@cbiedl
Copy link

cbiedl commented Dec 28, 2020

Like in latchset/tang#32 - asciidoc is EOL, see for example https://github.com/asciidoc/asciidoc/releases.

Switching to asciidoctor is fairly simple:

--- a/meson.build
+++ b/meson.build
@@ -61,10 +61,10 @@
   warning('Will not run tests due to missing dependencies!')
 endif
 
-a2x = find_program('a2x', required: false)
-if a2x.found()
+asciidoctor = find_program('asciidoctor', required: false)
+if asciidoctor.found()
   custom_target('nagios-tang.1',
-    command: [a2x, '-f', 'manpage', '-D', meson.current_build_dir(), '@INPUT@'],
+    command: [asciidoctor, '--attribute', 'reproducible', '--backend=manpage', '-D', meson.current_build_dir(
), '@INPUT@'],
     install_dir: join_paths(get_option('mandir'), 'man1'),
     input: 'nagios-tang.1.adoc',
     output: 'nagios-tang.1',
@cbiedl
Copy link
Author

cbiedl commented Jan 24, 2021

Strike that, asciidoc is still alive.

@cbiedl cbiedl closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant