mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
Do not blindly assume python3 is also the interpreter that runs rst2html
On my system python3 is the macOS system python3 while rst2html has #!/opt/homebrew/opt/python@3.9/bin/python3.9 as its first line. Running that with a different python results in missing python modules. So directly execute the rst2html script instead. Change-Id: I7e27ae031179c91cc1bca8122caf2453d6396ec0 Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Message-Id: <20230629215611.3292788-2-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26790.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
9903576923
commit
5dbec1c019
1 changed files with 4 additions and 4 deletions
|
|
@ -50,13 +50,13 @@ if (_GENERATE_HTML_DOC)
|
|||
list(APPEND ALL_DOCS openvpn.8.html openvpn-examples.5.html)
|
||||
add_custom_command(
|
||||
OUTPUT openvpn.8.html
|
||||
COMMAND ${PYTHON} ${RST2HTML} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn.8.html
|
||||
COMMAND ${RST2HTML} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn.8.html
|
||||
MAIN_DEPENDENCY openvpn.8.rst
|
||||
DEPENDS ${OPENVPN_SECTIONS}
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT openvpn-examples.5.html
|
||||
COMMAND ${PYTHON} ${RST2HTML} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5.html
|
||||
COMMAND ${RST2HTML} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5.html
|
||||
MAIN_DEPENDENCY openvpn-examples.5.rst
|
||||
DEPENDS ${OPENVPN_EXAMPLES_SECTIONS}
|
||||
)
|
||||
|
|
@ -65,13 +65,13 @@ if (_GENERATE_MAN_DOC)
|
|||
list(APPEND ALL_DOCS openvpn.8 openvpn-examples.5)
|
||||
add_custom_command(
|
||||
OUTPUT openvpn.8
|
||||
COMMAND ${PYTHON} ${RST2MAN} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn.8
|
||||
COMMAND ${RST2MAN} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn.8
|
||||
MAIN_DEPENDENCY openvpn.8.rst
|
||||
DEPENDS ${OPENVPN_SECTIONS}
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT openvpn-examples.5
|
||||
COMMAND ${PYTHON} ${RST2MAN} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5
|
||||
COMMAND ${RST2MAN} ${RST_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5
|
||||
MAIN_DEPENDENCY openvpn-examples.5.rst
|
||||
DEPENDS ${OPENVPN_EXAMPLES_SECTIONS}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue