-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Support rst as a man page option
infiniband-diags uses rst as a man page preprocessor, so add it along side pandoc in the build system. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
- Loading branch information
1 parent
87ec0dd
commit 3f69f34
Showing
9 changed files
with
123 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ addons: | |
- make | ||
- ninja-build | ||
- pandoc | ||
- python-docutils | ||
- pkg-config | ||
- python | ||
- valgrind | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# COPYRIGHT (c) 2019 Mellanox Technologies Ltd | ||
# Licensed under BSD (MIT variant) or GPLv2. See COPYING. | ||
find_program(RST2MAN_EXECUTABLE NAMES rst2man) | ||
|
||
if(RST2MAN_EXECUTABLE) | ||
execute_process(COMMAND "${RST2MAN_EXECUTABLE}" --version | ||
OUTPUT_VARIABLE _VERSION | ||
RESULT_VARIABLE _VERSION_RESULT | ||
ERROR_QUIET) | ||
|
||
if(NOT _VERSION_RESULT) | ||
string(REGEX REPLACE "^rst2man \\(Docutils ([^,]+), .*" "\\1" RST2MAN_VERSION_STRING "${_VERSION}") | ||
endif() | ||
unset(_VERSION_RESULT) | ||
unset(_VERSION) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(rst2man REQUIRED_VARS RST2MAN_EXECUTABLE RST2MAN_VERSION_STRING VERSION_VAR RST2MAN_VERSION_STRING) | ||
|
||
mark_as_advanced(RST2MAN_EXECUTABLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters