X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/51e2654cd27b3c2164e986fa7a90b5a20f8390a4..fb3353b854f40b8fd97ea942d3d9814e80e14779:/manual/CMakeLists.txt?ds=sidebyside diff --git a/manual/CMakeLists.txt b/manual/CMakeLists.txt index 436660fa..9b69b790 100644 --- a/manual/CMakeLists.txt +++ b/manual/CMakeLists.txt @@ -1,15 +1,15 @@ # Creates and installs manual page -execute_process( - COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 ${CMAKE_CURRENT_BINARY_DIR}/nominatim.1 -) - configure_file(${PROJECT_SOURCE_DIR}/manual/create-manpage.tmpl create_manpage.py) find_program(ARGPARSEMANPAGE argparse-manpage) ADD_CUSTOM_TARGET(manpage - COMMAND ${ARGPARSEMANPAGE} --pyfile ${CMAKE_CURRENT_BINARY_DIR}/create_manpage.py --function get_parser > nominatim.1 + COMMAND ${ARGPARSEMANPAGE} --pyfile ${CMAKE_CURRENT_BINARY_DIR}/create_manpage.py + --function get_parser --project-name Nominatim + --url https://nominatim.org > ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 + + COMMAND sed -i '/.SH AUTHORS/I,+2 d' ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 ) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/nominatim.1 DESTINATION share/man/man1 ) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 DESTINATION share/man/man1 )