]> git.openstreetmap.org Git - nominatim.git/blob - manual/CMakeLists.txt
Fix occurence regex
[nominatim.git] / manual / CMakeLists.txt
1 # Creates and installs manual page
2
3 configure_file(${PROJECT_SOURCE_DIR}/manual/create-manpage.tmpl create_manpage.py)
4
5 find_program(ARGPARSEMANPAGE argparse-manpage)
6
7 ADD_CUSTOM_TARGET(manpage
8     COMMAND ${ARGPARSEMANPAGE} --pyfile ${CMAKE_CURRENT_BINARY_DIR}/create_manpage.py
9     --function get_parser --project-name Nominatim
10     --url https://nominatim.org  > ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1
11
12     COMMAND sed -i '/.SH AUTHORS/I,+2 d' ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1
13 )
14
15 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/nominatim.1 DESTINATION share/man/man1 )