Code Monkey home page Code Monkey logo

Comments (2)

cbiedl avatar cbiedl commented on August 26, 2024

The build system switch required a re-write, so please use the following (or if the markup doesn't get it right, pick from https://sources.debian.org/data/main/c/clevis/13-1/debian/patches/debian.use-asciidoctor-to-build-manpages.patch - that URL isn't stable to, so plan B is to start at https://sources.debian.org/src/clevis/>, then pick the latest version and debian/patches/debian.use-asciidoctor-to-build-manpages.patch/ within that one.

--- a/meson.build
+++ b/meson.build
@@ -39,7 +39,7 @@
 
 jansson = dependency('jansson', version: '>=2.10', required: false)
 jose = dependency('jose', version: '>=8')
-a2x = find_program('a2x', required: false)
+asciidoctor = find_program('asciidoctor', required: false)
 
 bins = []
 mans = []
@@ -48,10 +48,10 @@
 
 install_data(bins, install_dir: bindir)
 
-if a2x.found()
+if asciidoctor.found()
   foreach m : mans
     custom_target(m.split('/')[-1], input: m + '.adoc', output: m.split('/')[-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'), 'man' + m.split('.')[-1]),
       install: true
     )

from tang.

cbiedl avatar cbiedl commented on August 26, 2024

Strike that, asciidoc is still alive.

from tang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.