summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-01-15 10:24:22 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-02-24 20:38:57 +0100
commit9860dacbb6526138ae8edf57adc42ddc3e6073fa (patch)
tree342c63b7cf515644be7e1a005813c75c0bc1bca6 /scripts
parent30a62acef45fb1652d0992dcbf30e473cea6bf74 (diff)
downloadmanaserv-9860dacbb6526138ae8edf57adc42ddc3e6073fa.tar.gz
manaserv-9860dacbb6526138ae8edf57adc42ddc3e6073fa.tar.bz2
manaserv-9860dacbb6526138ae8edf57adc42ddc3e6073fa.tar.xz
manaserv-9860dacbb6526138ae8edf57adc42ddc3e6073fa.zip
Made the scripts being able to install
The game server will now look for the scripts in this order: - serverPath - config value - current working directory - the PKG_DATADIR #define
Diffstat (limited to 'scripts')
-rw-r--r--scripts/CMakeLists.txt1
-rw-r--r--scripts/lua/CMakeLists.txt7
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
new file mode 100644
index 00000000..b0e653ec
--- /dev/null
+++ b/scripts/CMakeLists.txt
@@ -0,0 +1 @@
+ADD_SUBDIRECTORY(lua)
diff --git a/scripts/lua/CMakeLists.txt b/scripts/lua/CMakeLists.txt
new file mode 100644
index 00000000..ba58be51
--- /dev/null
+++ b/scripts/lua/CMakeLists.txt
@@ -0,0 +1,7 @@
+SET (FILES
+ libmana-constants.lua
+ libmana.lua
+ npclib.lua
+ )
+
+INSTALL(FILES ${FILES} DESTINATION ${PKG_DATADIR}/scripts/lua/)