From ff5a2372001b024e2e11d6d4db8d69809b1e5d29 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 13 Jan 2021 10:51:44 +0100 Subject: [PATCH] move PHP utilities into the lib directory These are not called directly as programs but used in a library fashion by the installed utilities. So the library directory is a better place. --- CMakeLists.txt | 1 - cmake/script.tmpl | 2 +- {utils => lib/admin}/check_import_finished.php | 0 {utils => lib/admin}/country_languages.php | 0 {utils => lib/admin}/export.php | 0 {utils => lib/admin}/query.php | 0 {utils => lib/admin}/setup.php | 0 {utils => lib/admin}/specialphrases.php | 0 {utils => lib/admin}/update.php | 0 {utils => lib/admin}/warm.php | 0 10 files changed, 1 insertion(+), 2 deletions(-) rename {utils => lib/admin}/check_import_finished.php (100%) mode change 100755 => 100644 rename {utils => lib/admin}/country_languages.php (100%) rename {utils => lib/admin}/export.php (100%) rename {utils => lib/admin}/query.php (100%) rename {utils => lib/admin}/setup.php (100%) rename {utils => lib/admin}/specialphrases.php (100%) rename {utils => lib/admin}/update.php (100%) rename {utils => lib/admin}/warm.php (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 253682df..1c274594 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,7 +98,6 @@ if (BUILD_IMPORTER) set(CUSTOMSCRIPTS check_import_finished.php country_languages.php - importWikipedia.php export.php query.php setup.php diff --git a/cmake/script.tmpl b/cmake/script.tmpl index 5b7bc6f7..8e72cc08 100755 --- a/cmake/script.tmpl +++ b/cmake/script.tmpl @@ -6,4 +6,4 @@ @define('CONST_LibDir', '@CMAKE_SOURCE_DIR@/lib'); @define('CONST_DataDir', '@CMAKE_SOURCE_DIR@'); -require_once(CONST_BinDir.'/@script_source@'); +require_once(CONST_LibDir.'/admin/@script_source@'); diff --git a/utils/check_import_finished.php b/lib/admin/check_import_finished.php old mode 100755 new mode 100644 similarity index 100% rename from utils/check_import_finished.php rename to lib/admin/check_import_finished.php diff --git a/utils/country_languages.php b/lib/admin/country_languages.php similarity index 100% rename from utils/country_languages.php rename to lib/admin/country_languages.php diff --git a/utils/export.php b/lib/admin/export.php similarity index 100% rename from utils/export.php rename to lib/admin/export.php diff --git a/utils/query.php b/lib/admin/query.php similarity index 100% rename from utils/query.php rename to lib/admin/query.php diff --git a/utils/setup.php b/lib/admin/setup.php similarity index 100% rename from utils/setup.php rename to lib/admin/setup.php diff --git a/utils/specialphrases.php b/lib/admin/specialphrases.php similarity index 100% rename from utils/specialphrases.php rename to lib/admin/specialphrases.php diff --git a/utils/update.php b/lib/admin/update.php similarity index 100% rename from utils/update.php rename to lib/admin/update.php diff --git a/utils/warm.php b/lib/admin/warm.php similarity index 100% rename from utils/warm.php rename to lib/admin/warm.php -- 2.39.5