From 855cf12007e591838957fd7b9adc9fc5a3c5f2d3 Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Sun, 11 Jun 2023 02:17:49 +0000 Subject: [PATCH] Move scripts to tools --- .gitignore | 8 ++++++++ tools/CMakeLists.txt | 33 +++++++++++++++++++++++------- athena-start => tools/athena-start | 0 configure => tools/configure | 0 configure.ac => tools/configure.ac | 0 function.sh => tools/function.sh | 0 install.sh => tools/install.sh | 0 uninstall.sh => tools/uninstall.sh | 0 8 files changed, 34 insertions(+), 7 deletions(-) rename athena-start => tools/athena-start (100%) rename configure => tools/configure (100%) rename configure.ac => tools/configure.ac (100%) rename function.sh => tools/function.sh (100%) rename install.sh => tools/install.sh (100%) rename uninstall.sh => tools/uninstall.sh (100%) diff --git a/.gitignore b/.gitignore index 2513bbedac..a2a216cd62 100644 --- a/.gitignore +++ b/.gitignore @@ -139,6 +139,14 @@ Thumbs.db /yamlupgrade.bat /navigenerator.bat +# Linux script tools +/athena-start +/configure +/configure.ac +/function.sh +/install.sh +/uninstall.sh + # dlls /libmysql.dll /pcre8.dll diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 67442585e8..74dc3d9c3d 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -11,11 +11,30 @@ function(copy_to_source_dir FILENAMES) endforeach() endfunction() -set(FILES_TO_COPY -"serv.bat" -"logserv.bat" -"charserv.bat" -"mapserv.bat" - "runserver.bat" +if(WIN32) + set(WIN_FILES_TO_COPY + "charserv.bat" + "csv2yaml.bat" + "logserv.bat" + "mapcache.bat" + "mapserv.bat" + "runserver.bat" + "serv.bat" + "webserv.bat" + "yaml2sql.bat" + "yamlupgrade.bat" + "navigenerator.bat" + ) + copy_to_source_dir("${WIN_FILES_TO_COPY}") +else() + set(LINUX_FILES_TO_COPY + "athena-start" + "configure" + "configure.ac" + "function.sh" + "install.sh" + "uninstall.sh" + ) -) \ No newline at end of file + copy_to_source_dir("${LINUX_FILES_TO_COPY}") +endif() \ No newline at end of file diff --git a/athena-start b/tools/athena-start similarity index 100% rename from athena-start rename to tools/athena-start diff --git a/configure b/tools/configure similarity index 100% rename from configure rename to tools/configure diff --git a/configure.ac b/tools/configure.ac similarity index 100% rename from configure.ac rename to tools/configure.ac diff --git a/function.sh b/tools/function.sh similarity index 100% rename from function.sh rename to tools/function.sh diff --git a/install.sh b/tools/install.sh similarity index 100% rename from install.sh rename to tools/install.sh diff --git a/uninstall.sh b/tools/uninstall.sh similarity index 100% rename from uninstall.sh rename to tools/uninstall.sh