aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-25 21:24:00 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-25 21:24:18 +0200
commit4ed58dd89ab7ef8b1390a2814d87e0a0b329f793 (patch)
treeac1de034945207873b785ce1e4069f09bd66bea1
parent022668fb2336433fda051357fc273b91a9a7092f (diff)
downloadjson-rpc-shell-4ed58dd89ab7ef8b1390a2814d87e0a0b329f793.tar.gz
json-rpc-shell-4ed58dd89ab7ef8b1390a2814d87e0a0b329f793.tar.xz
json-rpc-shell-4ed58dd89ab7ef8b1390a2814d87e0a0b329f793.zip
Bump liberty, make use of its new asciiman.awk
-rw-r--r--CMakeLists.txt10
-rw-r--r--README.adoc8
m---------liberty0
3 files changed, 13 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98a5291..135ef0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -99,7 +99,8 @@ install (FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
find_program (ASCIIDOCTOR_EXECUTABLE asciidoctor)
find_program (A2X_EXECUTABLE a2x)
if (NOT ASCIIDOCTOR_EXECUTABLE AND NOT A2X_EXECUTABLE)
- message (FATAL_ERROR "Neither asciidoctor nor a2x were found")
+ message (WARNING "Neither asciidoctor nor a2x were found, "
+ "falling back to a substandard manual page generator")
endif ()
foreach (page ${PROJECT_NAME})
@@ -121,6 +122,13 @@ foreach (page ${PROJECT_NAME})
"${PROJECT_SOURCE_DIR}/${page}.adoc"
DEPENDS ${page}.adoc
COMMENT "Generating man page for ${page}" VERBATIM)
+ else ()
+ set (ASCIIMAN ${PROJECT_SOURCE_DIR}/liberty/tools/asciiman.awk)
+ add_custom_command (OUTPUT ${page_output}
+ COMMAND env LC_ALL=C awk -f ${ASCIIMAN}
+ "${PROJECT_SOURCE_DIR}/${page}.adoc" > ${page_output}
+ DEPENDS ${page}.adoc ${ASCIIMAN}
+ COMMENT "Generating man page for ${page}" VERBATIM)
endif ()
endforeach ()
diff --git a/README.adoc b/README.adoc
index 2138514..1936789 100644
--- a/README.adoc
+++ b/README.adoc
@@ -34,10 +34,10 @@ a package with the latest development version from Archlinux's AUR.
Building
--------
-Build dependencies: CMake, pkg-config, asciidoctor or asciidoc,
- liberty (included), http-parser (included) +
-Runtime dependencies: libev, Jansson, cURL, openssl,
- readline or libedit >= 2013-07-12,
+Build dependencies: CMake, pkg-config, liberty (included),
+ http-parser (included), asciidoctor or asciidoc (recommended but optional) +
+Runtime dependencies:
+ libev, Jansson, cURL, openssl, readline or libedit >= 2013-07-12
$ git clone --recursive https://git.janouch.name/p/json-rpc-shell.git
$ mkdir json-rpc-shell/build
diff --git a/liberty b/liberty
-Subproject d71c47f8ce7aecdc4856630e9d73a48912be68c
+Subproject 688c458095974fcd85b2f92c6b5380edfb56439