git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: Alternate name for docbook2x-texi binary

From
MDMichael Darling <darlingm@gmail.com>
Date
May 13, 2015, 08:28 UTC
Message-ID
<CABRuA+icJWgbpFaV=6t1zOaLfrG3i_vSpm1rwOOyp=+0eBL4zg@mail.gmail.com>

In Fedora 21, docbook2x-texi binary is named db2x_docbook2texi. If binary docbook2-texi is not found, looks for db2x_docbook2texi. Also gives an error if neither is found.

Signed-off by: Michael Darling <darlingm@gmail.com>
---
 Documentation/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 3e39e28..f5f9ad5 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -116,7 +116,15 @@ HTML_REPO = ../../git-htmldocs

 MAKEINFO = makeinfo
 INSTALL_INFO = install-info
-DOCBOOK2X_TEXI = docbook2x-texi
+
+DOCBOOK2X_TEXI = $(shell which docbook2x-texi)
+ifeq (, $(DOCBOOK2X_TEXI))
+DOCBOOK2X_TEXI = $(shell which db2x_docbook2texi)
+ifeq (, $(DOCBOOK2X_TEXI))
+$(error Did not find docbook2x-texi or db2x_docbook2texi, required)
+endif
+endif
+
 DBLATEX = dblatex
 ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex
 ifndef PERL_PATH
-- 
2.4.0.53.g8440f74
Message 1 of 1 in “Documentation: Alternate name for docbook2x-texi binary”
  1. Documentation: Alternate name for docbook2x-texi binaryMichael Darling, May 13, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.