]> git.openstreetmap.org Git - nominatim.git/blobdiff - docs/CMakeLists.txt
add osm2pgsql update tests
[nominatim.git] / docs / CMakeLists.txt
index fb121c8f79d900969f2463a6f4022e22a35a7402..bf453a77b802d8e0326e9af4013c79a2d16ee044 100644 (file)
@@ -2,12 +2,14 @@
 
 set (INSTALLDOCFILES
      install-on-centos-7
+     install-on-ubuntu-16
     )
 
 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 +18,12 @@ ADD_CUSTOM_TARGET( md_install_${df} ALL
         )
 endforeach()
 
+set (GENERALDOCFILES
+     Installation.md
+     Import_and_update.md
+    )
+
+foreach (df ${GENERALDOCFILES})
+   CONFIGURE_FILE(${df} ${df})
+endforeach()
+