]> git.openstreetmap.org Git - nominatim.git/commitdiff
forward cli tool return value as exit code
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 14 Jan 2021 13:36:41 +0000 (14:36 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 14 Jan 2021 13:36:41 +0000 (14:36 +0100)
cmake/tool.tmpl

index 56ccd757705b42767d33bfd0d2bb27630a70824e..40f2b8ea7920e910641577002a2aac1d051fadfd 100755 (executable)
@@ -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@'))