浏览代码

Move scripts to tools

Vincent Stumpf 1 年之前
父节点
当前提交
855cf12007
共有 8 个文件被更改,包括 34 次插入7 次删除
  1. 8 0
      .gitignore
  2. 26 7
      tools/CMakeLists.txt
  3. 0 0
      tools/athena-start
  4. 0 0
      tools/configure
  5. 0 0
      tools/configure.ac
  6. 0 0
      tools/function.sh
  7. 0 0
      tools/install.sh
  8. 0 0
      tools/uninstall.sh

+ 8 - 0
.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

+ 26 - 7
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"
+    )
 
-)
+    copy_to_source_dir("${LINUX_FILES_TO_COPY}")
+endif()

+ 0 - 0
athena-start → tools/athena-start


+ 0 - 0
configure → tools/configure


+ 0 - 0
configure.ac → tools/configure.ac


+ 0 - 0
function.sh → tools/function.sh


+ 0 - 0
install.sh → tools/install.sh


+ 0 - 0
uninstall.sh → tools/uninstall.sh