summaryrefslogtreecommitdiff
path: root/docs/man
diff options
context:
space:
mode:
authorMichal Domonkos <mdomonko@redhat.com>2022-11-22 15:07:23 +0100
committerPanu Matilainen <pmatilai@redhat.com>2022-11-22 16:45:41 +0200
commit425e2e02963eb2be8c685c75c37e7cc32103326c (patch)
treeed3f2a13efdb3b8038af85035fd584bd337b183b /docs/man
parent9fe0a099adb2dd373817b1c582200335830334b1 (diff)
downloadrpm-425e2e02963eb2be8c685c75c37e7cc32103326c.tar.gz
Fix missing headers/footers in generated man pages
Pass -s/--standalone to pandoc as it's needed in order for the man pages to render properly in man(1), we also used this option pre-cmake. While at it, also add the lost "-t man" back, to be explicit and avoid educated guesses. Fixes: #2283
Diffstat (limited to 'docs/man')
-rw-r--r--docs/man/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/man/CMakeLists.txt b/docs/man/CMakeLists.txt
index a5aa1608f..c59a879cb 100644
--- a/docs/man/CMakeLists.txt
+++ b/docs/man/CMakeLists.txt
@@ -34,8 +34,8 @@ foreach(man ${manuals})
# XXX manuals should be pre-built in tarballs
if (EXISTS ${PANDOC})
add_custom_command(OUTPUT ${man} COMMAND ${PANDOC}
- ${CMAKE_CURRENT_SOURCE_DIR}/${man}.md -o ${man}
- DEPENDS ${man}.md)
+ ${CMAKE_CURRENT_SOURCE_DIR}/${man}.md
+ -s -t man -o ${man} DEPENDS ${man}.md)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${man} TYPE MAN)
endif()
endforeach()