From: Sarah Hoffmann Date: Thu, 14 Jan 2021 13:36:41 +0000 (+0100) Subject: forward cli tool return value as exit code X-Git-Tag: v3.7.0~57^2~5 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9619cb3fe55d2090c83a9471dc52597da5a1995c forward cli tool return value as exit code --- diff --git a/cmake/tool.tmpl b/cmake/tool.tmpl index 56ccd757..40f2b8ea 100755 --- a/cmake/tool.tmpl +++ b/cmake/tool.tmpl @@ -5,7 +5,7 @@ sys.path.insert(1, '@CMAKE_SOURCE_DIR@') from nominatim import cli -cli.nominatim(module_dir='@CMAKE_BINARY_DIR@/module', - osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql', - phplib_dir='@CMAKE_SOURCE_DIR@/lib', - data_dir='@CMAKE_SOURCE_DIR@') +exit(cli.nominatim(module_dir='@CMAKE_BINARY_DIR@/module', + osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql', + phplib_dir='@CMAKE_SOURCE_DIR@/lib', + data_dir='@CMAKE_SOURCE_DIR@'))