File tree 20 files changed +78
-39
lines changed
20 files changed +78
-39
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ add_definitions(-DNOMINATIM_VERSION="${NOMINATIM_VERSION}")
33
33
#-----------------------------------------------------------------------------
34
34
35
35
set (BUILD_TESTS on )
36
+ set (WITH_LUA off )
36
37
add_subdirectory (osm2pgsql)
37
38
38
39
find_package (Threads REQUIRED)
@@ -60,19 +61,41 @@ include_directories(${LIBXML2_INCLUDE_DIR})
60
61
#
61
62
#-----------------------------------------------------------------------------
62
63
63
- configure_file (
64
- ${PROJECT_SOURCE_DIR} /settings/settings.php
65
- ${PROJECT_BINARY_DIR} /settings/settings.php
66
- )
64
+ set (CUSTOMFILES
65
+ settings/settings.php
66
+ settings/phrase_settings.php
67
+ website/deletable.php
68
+ website/details.php
69
+ website/hierarchy.php
70
+ website/lookup.php
71
+ website/polygons.php
72
+ website/reverse .php
73
+ website/search.php
74
+ website/status .php
75
+ utils/blocks.php
76
+ utils/country_languages.php
77
+ utils/imports.php
78
+ utils/importWikipedia.php
79
+ utils/query.php
80
+ utils/server_compare.php
81
+ utils/setup.php
82
+ utils/specialphrases.php
83
+ utils/update.php
84
+ utils/warm.php
85
+ )
86
+
87
+ foreach (cfile ${CUSTOMFILES} )
88
+ configure_file (${PROJECT_SOURCE_DIR} /${cfile} ${PROJECT_BINARY_DIR} /${cfile} )
89
+ endforeach ()
90
+
91
+ set (WEBPATHS css images js)
67
92
68
- configure_file (
69
- ${PROJECT_SOURCE_DIR} /settings/phrase_settings.php
70
- ${PROJECT_BINARY_DIR} /settings/phrase_settings.php
71
- )
93
+ foreach (wp ${WEBPATHS} )
94
+ execute_process (
95
+ COMMAND ln -sf ${PROJECT_SOURCE_DIR} /website/${wp} ${PROJECT_BINARY_DIR} /website/
96
+ )
97
+ endforeach ()
72
98
73
- execute_process (
74
- COMMAND ln -s -t ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} /utils
75
- )
76
99
77
100
#-----------------------------------------------------------------------------
78
101
#
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- @define ('CONST_BasePath ' , dirname (dirname (__FILE__ )));
4
-
5
- require_once ('settings/settings.php ' );
6
3
require_once (CONST_BasePath.'/lib/lib.php ' );
7
4
require_once (CONST_BasePath.'/lib/leakybucket.php ' );
8
5
require_once (CONST_BasePath.'/lib/db.php ' );
Original file line number Diff line number Diff line change 1
1
<?php
2
- @define ('CONST_InstallPath ' , dirname (dirname (__FILE__ )));
2
+ @define ('CONST_BasePath ' , '@CMAKE_SOURCE_DIR@ ' );
3
+ @define ('CONST_InstallPath ' , '@CMAKE_BINARY_DIR@ ' );
3
4
if (file_exists (CONST_InstallPath.'/settings/local.php ' )) require_once (CONST_InstallPath.'/settings/local.php ' );
4
5
if (isset ($ _GET ['debug ' ]) && $ _GET ['debug ' ]) @define ('CONST_Debug ' , true );
5
6
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
5
- ini_set ('memory_limit ' , '800M ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
6
+ ini_set ('memory_limit ' , '800M ' );
6
7
7
8
$ aCMDOptions = array (
8
9
"Manage service blocks / restrictions " ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
6
+
5
7
ini_set ('memory_limit ' , '800M ' );
6
8
ini_set ('display_errors ' , 'stderr ' );
7
9
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
5
6
ini_set ('memory_limit ' , '800M ' );
6
7
7
8
$ aCMDOptions = array (
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
5
6
ini_set ('memory_limit ' , '800M ' );
6
7
7
8
$ aCMDOptions = array (
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
5
- require_once (CONST_BasePath.'/lib/Geocode.php ' );
6
- ini_set ('memory_limit ' , '800M ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
6
+ require_once (CONST_BasePath.'/lib/Geocode.php ' );
7
+ ini_set ('memory_limit ' , '800M ' );
7
8
8
9
$ aCMDOptions = array (
9
10
"Query database from command line. Returns search result as JSON. " ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
5
6
ini_set ('memory_limit ' , '800M ' );
6
7
7
8
$ aCMDOptions = array (
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
5
- ini_set ('memory_limit ' , '800M ' );
6
- ini_set ('display_errors ' , 'stderr ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
6
+ ini_set ('memory_limit ' , '800M ' );
7
+ ini_set ('display_errors ' , 'stderr ' );
7
8
8
9
$ aCMDOptions = array (
9
10
"Import and export special phrases " ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
5
- ini_set ('memory_limit ' , '800M ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
6
+ ini_set ('memory_limit ' , '800M ' );
6
7
7
8
$ aCMDOptions = array (
8
9
"Import / update / index osm data " ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -Cq
2
2
<?php
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-cmd.php ' );
5
- ini_set ('memory_limit ' , '800M ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-cmd.php ' );
6
+ ini_set ('memory_limit ' , '800M ' );
6
7
7
8
$ aCMDOptions = array (
8
9
"Tools to warm nominatim db " ,
Original file line number Diff line number Diff line change 1
1
<?php
2
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
2
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
3
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
3
4
require_once (CONST_BasePath.'/lib/log.php ' );
4
5
5
6
$ sOutputFormat = 'html ' ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
@define ('CONST_ConnectionBucket_PageType ' , 'Details ' );
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
5
6
require_once (CONST_BasePath.'/lib/log.php ' );
6
7
7
8
$ sOutputFormat = 'html ' ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
@define ('CONST_ConnectionBucket_PageType ' , 'Details ' );
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
5
6
require_once (CONST_BasePath.'/lib/log.php ' );
6
7
require_once (CONST_BasePath.'/lib/PlaceLookup.php ' );
7
8
Original file line number Diff line number Diff line change 1
1
<?php
2
2
@define ('CONST_ConnectionBucket_PageType ' , 'Reverse ' );
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
5
6
require_once (CONST_BasePath.'/lib/log.php ' );
6
7
require_once (CONST_BasePath.'/lib/PlaceLookup.php ' );
7
8
Original file line number Diff line number Diff line change 1
1
<?php
2
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
2
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
3
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
3
4
require_once (CONST_BasePath.'/lib/log.php ' );
4
5
5
6
$ sOutputFormat = 'html ' ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
@define ('CONST_ConnectionBucket_PageType ' , 'Reverse ' );
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
5
6
require_once (CONST_BasePath.'/lib/log.php ' );
6
7
require_once (CONST_BasePath.'/lib/PlaceLookup.php ' );
7
8
require_once (CONST_BasePath.'/lib/ReverseGeocode.php ' );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
@define ('CONST_ConnectionBucket_PageType ' , 'Search ' );
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
5
6
require_once (CONST_BasePath.'/lib/log.php ' );
6
7
require_once (CONST_BasePath.'/lib/Geocode.php ' );
7
8
Original file line number Diff line number Diff line change 1
1
<?php
2
2
@define ('CONST_ConnectionBucket_PageType ' , 'Status ' );
3
3
4
- require_once (dirname (dirname (__FILE__ )).'/lib/init-website.php ' );
4
+ require_once (dirname (dirname (__FILE__ )).'/settings/settings.php ' );
5
+ require_once (CONST_BasePath.'/lib/init-website.php ' );
5
6
6
7
function statusError ($ sMsg )
7
8
{
You can’t perform that action at this time.
0 commit comments