File: local.use-asciidoctor-to-build-manpages.patch

package info (click to toggle)
luksmeta 9-4%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,652 kB
  • sloc: sh: 4,461; ansic: 2,188; makefile: 88
file content (27 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Subject: Use asciidoctor to build the manpages
Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date: 2018-08-11
Bug: https://github.com/latchset/tang/issues/32

--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,7 @@
 
 $(top_builddir)/%.roff: %.adoc
 	$(MKDIR_P) $$(dirname $@)
-	$(A2X) -v -f manpage $^ -D $(top_builddir)/$$(dirname $@)
+	$(A2X) -v --attribute reproducible --backend=manpage $^ -D $(top_builddir)/$$(dirname $@)
 	$(INSTALL) -m 644 $(top_builddir)/$(@:.roff=) $(top_builddir)/$@
 
 man8_MANS = luksmeta.8
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@
 "
 AC_SUBST([LUKSMETA_CFLAGS])
 
-AC_CHECK_PROGS(A2X, [a2x])
+AC_CHECK_PROGS(A2X, [asciidoctor])
 
 if test "x$A2X" = "x"; then
    AC_MSG_WARN([asciidoc / a2x not found -- man pages will not be generated and installed!])