add skeleton for new Nominatim executables

This commit is contained in:
Sarah Hoffmann
2021-01-12 10:17:28 +01:00
parent a74e736283
commit 612fd50612
4 changed files with 36 additions and 0 deletions

11
cmake/tool.tmpl Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env python3
import sys
sys.path.insert(1, '@CMAKE_SOURCE_DIR@')
from nominatim import tools
tools.@tool_name@(module_dir='@CMAKE_BINARY_DIR@/module',
osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql',
phplib_dir='@CMAKE_SOURCE_DIR@/lib',
data_dir='@CMAKE_SOURCE_DIR@')