X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ff6c3a705be5477d32d832df174107e65c3556a5..d1b1acaf1dce32d0e7dfd6879459e51fd6d55535:/docs/CMakeLists.txt diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index fb121c8f..fd7b808f 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -6,8 +6,9 @@ set (INSTALLDOCFILES foreach (df ${INSTALLDOCFILES}) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${df}.md - COMMAND sed [=['/^#!/d;s:^#\( \|$$\)::;s/.*#DOCS://']=] ${PROJECT_SOURCE_DIR}/vagrant/${df}.sh > ${CMAKE_CURRENT_BINARY_DIR}/${df}.md + COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh ${PROJECT_SOURCE_DIR}/vagrant/${df}.sh ${CMAKE_CURRENT_BINARY_DIR}/${df}.md MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/vagrant/${df}.sh + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh COMMENT "Creating markdown docs from vagrant/${df}.sh" ) @@ -16,3 +17,11 @@ ADD_CUSTOM_TARGET( md_install_${df} ALL ) endforeach() +set (GENERALDOCFILES + Import_and_update.md + ) + +foreach (df ${GENERALDOCFILES}) + CONFIGURE_FILE(${df} ${df}) +endforeach() +