mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 07:43:01 +00:00
tests.sh: use $OSTYPE to decide how to call luarocks
this is ridiculous
This commit is contained in:
parent
b94c38bb99
commit
5ac98cfa22
1 changed files with 7 additions and 9 deletions
16
tests.sh
16
tests.sh
|
@ -31,15 +31,13 @@ check_command luarocks;
|
|||
luarocks_root="${PWD}/.luarocks";
|
||||
|
||||
# Setup the lua module path
|
||||
# eval "$(luarocks --tree "${luarocks_root}" path)";
|
||||
echo "PATH | ${PATH}";
|
||||
echo "LUA_PATH | ${LUA_PATH}";
|
||||
echo "LUA_CPATH | ${LUA_CPATH}";
|
||||
|
||||
PATH="$(luarocks --tree "${luarocks_root}" path --lr-bin):${PATH}";
|
||||
LUA_PATH="$(luarocks --tree "${luarocks_root}" path --lr-path);init.lua;./?.lua;${LUA_PATH}";
|
||||
LUA_CPATH="$(luarocks --tree "${luarocks_root}" path --lr-cpath);./?.so;${LUA_CPATH}";
|
||||
|
||||
if [[ "${OSTYPE}" == *"msys"* ]]; then
|
||||
PATH="$(luarocks --tree "${luarocks_root}" path --lr-bin):${PATH}";
|
||||
LUA_PATH="$(luarocks --tree "${luarocks_root}" path --lr-path);init.lua;./?.lua;${LUA_PATH}";
|
||||
LUA_CPATH="$(luarocks --tree "${luarocks_root}" path --lr-cpath);./?.so;${LUA_CPATH}";
|
||||
else
|
||||
eval "$(luarocks --tree "${luarocks_root}" path)";
|
||||
fi
|
||||
|
||||
export PATH LUA_PATH LUA_CPATH;
|
||||
|
||||
|
|
Loading…
Reference in a new issue