]> git.openstreetmap.org Git - nominatim.git/blobdiff - cmake/script.tmpl
reorganise path settings in config
[nominatim.git] / cmake / script.tmpl
index 8146ca8b5880b2376d996bbfffe6b9e166617d60..1b0cab64a97ef2ddc90454fbd5816df8c78f7440 100755 (executable)
@@ -1,4 +1,9 @@
 #!@PHP_BIN@ -Cq
 <?php
-require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
-require_once(CONST_BasePath.'/@script_source@');
+@define('CONST_BinDir', '@CMAKE_SOURCE_DIR@/utils');
+@define('CONST_LibDir', '@CMAKE_SOURCE_DIR@/lib');
+@define('CONST_DataDir', '@CMAKE_SOURCE_DIR@');
+@define('CONST_InstallDir', '@CMAKE_BINARY_DIR@');
+
+require_once(CONST_InstallDir.'/settings/settings.php');
+require_once(CONST_BinDir.'/@script_source@');