You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.7 KiB
46 lines
1.7 KiB
3 years ago
|
diff --git a/man/adoc/CMakeLists.txt b/man/adoc/CMakeLists.txt
|
||
|
index 6f785d9d..c046b79f 100644
|
||
|
--- a/man/adoc/CMakeLists.txt
|
||
|
+++ b/man/adoc/CMakeLists.txt
|
||
|
@@ -1,7 +1,5 @@
|
||
|
-find_program(GZIP gzip REQUIRED)
|
||
|
find_program(ASCIIDOCTOR asciidoctor REQUIRED)
|
||
|
file(GLOB FILES *.adoc)
|
||
|
-set(GZFILES "")
|
||
|
foreach(FIL ${FILES})
|
||
|
get_filename_component(NAME ${FIL} NAME_WE)
|
||
|
set(MANPAGE_FILE ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.8)
|
||
|
@@ -10,12 +8,6 @@ foreach(FIL ${FILES})
|
||
|
add_custom_command(OUTPUT ${MANPAGE_FILE}
|
||
|
COMMAND ${ASCIIDOCTOR} ${FIL} -b manpage -o - > ${MANPAGE_FILE}
|
||
|
DEPENDS ${FIL})
|
||
|
-
|
||
|
- add_custom_command(OUTPUT ${GZ_MANPAGE_FILE}
|
||
|
- COMMAND ${GZIP} -c ${MANPAGE_FILE} > ${GZ_MANPAGE_FILE}
|
||
|
- DEPENDS ${MANPAGE_FILE})
|
||
|
-
|
||
|
- list(APPEND GZFILES ${GZ_MANPAGE_FILE})
|
||
|
endforeach()
|
||
|
-add_custom_target(adoc_man DEPENDS ${GZFILES})
|
||
|
-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
||
|
+add_custom_target(adoc_man DEPENDS ${FILES})
|
||
|
+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
||
|
diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt
|
||
|
index 2a316cd9..2207cf80 100644
|
||
|
--- a/man/man8/CMakeLists.txt
|
||
|
+++ b/man/man8/CMakeLists.txt
|
||
|
@@ -1,12 +1,3 @@
|
||
|
-find_program(GZIP gzip REQUIRED)
|
||
|
file(GLOB FILES *.8)
|
||
|
-set(GZFILES "")
|
||
|
-foreach(FIL ${FILES})
|
||
|
- get_filename_component(NAME ${FIL} NAME)
|
||
|
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
|
||
|
- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
|
||
|
- DEPENDS ${FIL})
|
||
|
- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz")
|
||
|
-endforeach()
|
||
|
add_custom_target(man_man DEPENDS ${GZFILES})
|
||
|
-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
||
|
+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|