aboutsummaryrefslogtreecommitdiff
path: root/install.bat
diff options
context:
space:
mode:
Diffstat (limited to 'install.bat')
-rw-r--r--install.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/install.bat b/install.bat
index b957299f..016eddaf 100644
--- a/install.bat
+++ b/install.bat
@@ -634,6 +634,14 @@ local function get_possible_lua_directories()
634 return directories 634 return directories
635end 635end
636 636
637local function strip_bin(bindir)
638 bindir = bindir:gsub("[/\\]*$", "")
639 if bindir:upper():match("[/\\]BIN") then
640 bindir = bindir:sub(1, -5):gsub("[/\\]*$", "")
641 end
642 return bindir
643end
644
637local function look_for_lua_install () 645local function look_for_lua_install ()
638 print("Looking for Lua interpreter") 646 print("Looking for Lua interpreter")
639 if vars.LUA_BINDIR and vars.LUA_LIBDIR and vars.LUA_INCDIR then 647 if vars.LUA_BINDIR and vars.LUA_LIBDIR and vars.LUA_INCDIR then
@@ -643,6 +651,7 @@ local function look_for_lua_install ()
643 then 651 then
644 if get_runtime() then 652 if get_runtime() then
645 print("Runtime check completed.") 653 print("Runtime check completed.")
654 vars.LUA_DIR = vars.LUA_PREFIX or strip_bin(vars.LUA_BINDIR)
646 return true 655 return true
647 end 656 end
648 end 657 end