From 637cdf3e1c616cb26ccaf19353868e90f01d0b51 Mon Sep 17 00:00:00 2001 From: Markus Heidelberg Date: Mon, 7 Nov 2022 15:12:03 +0100 Subject: [PATCH] doc: Fix missing man pages in reference manual PDF generated by MSYS2 Script "ref_ptx.sh" could not be executed, but no error message appeared. The build finished successfully, but the generated "ref-parts.so" was empty so the man pages were missing from PDF. Regression introduced in commit ecdf4dfb0b ("doc: Do not copy scripts to build directory", 2022-11-04), which accidentally removed the use of "sh" for script invocation of ref_ptx.sh only. --- doc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index e05f4f73..99467afa 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -151,7 +151,7 @@ add_custom_target(web-site ALL DEPENDS ${WEB_PAGE_OUTPUTS}) # Reference Manual Components set(REF_PARTS ${CMAKE_CURRENT_BINARY_DIR}/etc/ref-parts.so) add_custom_command(OUTPUT ${REF_PARTS} - COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/script/ref-ptx.sh ${MAN_PAGES} > ${REF_PARTS} + COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/script/ref-ptx.sh ${MAN_PAGES} > ${REF_PARTS} DEPENDS ${MAN_PAGES} ${CMAKE_CURRENT_SOURCE_DIR}/script/ref-ptx.sh