-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.bat
25 lines (21 loc) · 936 Bytes
/
env.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo OFF
rem Make sure we can find the interpreter. Note that we prepend our path so that we don't find
rem an earlier version of the interpreter on the system. Our module is not compatible with Lua 5.1.
set PATH=C:/GALua/lua-5.2.1/bin;D:/GALua/lua-5.2.1/bin;%PATH%
rem Set the LUA_CPATH env-var so that Lua can find our Lua modules written in C++.
set GALUA_CPATH=C:/GALua/Build/?.debug.dll;D:/GALua/Build/?.debug.dll
set GALUA_CPATH=%GALUA_CPATH%;C:/GALua/Build/?.release.dll;D:/GALua/Build/?.release.dll
if "%LUA_CPATH%"=="" (
set LUA_CPATH=%GALUA_CPATH%;;
) else (
set LUA_CPATH=%LUA_CPATH%;%GALUA_CPATH%
)
rem Set the LUA_PATH env-var so that Lua can find our Lua modules written in Lua.
set GALUA_PATH=C:/GALua/SupplementaryModules/?.lua;D:/GALua/SupplementaryModules/?.lua
if "%LUA_PATH%"=="" (
set LUA_PATH=%GALUA_PATH%;;
) else (
set LUA_PATH=%LUA_PATH%;%GALUA_PATH%
)
rem We're done!
echo Environment variables set!