aboutsummaryrefslogtreecommitdiff
path: root/install.bat
diff options
context:
space:
mode:
Diffstat (limited to 'install.bat')
-rw-r--r--install.bat8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.bat b/install.bat
index d83dfbf1..8c2983a7 100644
--- a/install.bat
+++ b/install.bat
@@ -360,7 +360,7 @@ local function look_for_headers (directory)
360 die(S"lua.h not found in $LUA_INCDIR") 360 die(S"lua.h not found in $LUA_INCDIR")
361 end 361 end
362 362
363 for _, e in ipairs{ [[\]], [[\include\]]} do 363 for _, e in ipairs{ S([[\include\lua\$LUA_VERSION]]), S([[\include\$LUA_VERSION]]), [[\]], [[\include\]]} do
364 print(" checking for "..directory..e.."\\lua.h") 364 print(" checking for "..directory..e.."\\lua.h")
365 if exists(directory..e.."\\lua.h") then 365 if exists(directory..e.."\\lua.h") then
366 vars.LUA_INCDIR = directory..e 366 vars.LUA_INCDIR = directory..e
@@ -811,7 +811,7 @@ else
811end 811end
812f:write(S[=[ 812f:write(S[=[
813site_config.LUAROCKS_UNAME_M=[[$UNAME_M]] 813site_config.LUAROCKS_UNAME_M=[[$UNAME_M]]
814site_config.LUAROCKS_SYSCONFIG=[[$SYSCONFDIR\config.lua]] 814site_config.LUAROCKS_SYSCONFIG=[[$SYSCONFDIR\config-$LUA_VERSION.lua]]
815site_config.LUAROCKS_ROCKS_TREE=[[$TREE_ROOT]] 815site_config.LUAROCKS_ROCKS_TREE=[[$TREE_ROOT]]
816site_config.LUAROCKS_PREFIX=[[$PREFIX]] 816site_config.LUAROCKS_PREFIX=[[$PREFIX]]
817site_config.LUAROCKS_DOWNLOADER=[[wget]] 817site_config.LUAROCKS_DOWNLOADER=[[wget]]
@@ -832,12 +832,12 @@ f:close()
832print(S[[Created LuaRocks site-config file: $LUADIR\luarocks\site_config.lua]]) 832print(S[[Created LuaRocks site-config file: $LUADIR\luarocks\site_config.lua]])
833 833
834-- create config file 834-- create config file
835vars.CONFIG_FILE = vars.SYSCONFDIR.."\\config.lua" 835vars.CONFIG_FILE = vars.SYSCONFDIR..S"\\config-$LUA_VERSION.lua"
836if not exists(vars.SYSCONFDIR) then 836if not exists(vars.SYSCONFDIR) then
837 mkdir(vars.SYSCONFDIR) 837 mkdir(vars.SYSCONFDIR)
838end 838end
839if exists(vars.CONFIG_FILE) then 839if exists(vars.CONFIG_FILE) then
840 local nname = backup(vars.CONFIG_FILE, "config.bak") 840 local nname = backup(vars.CONFIG_FILE, S"config-$LUA_VERSION.bak")
841 print("***************") 841 print("***************")
842 print(S"*** WARNING *** LuaRocks config file already exists: '$CONFIG_FILE'. The old file has been renamed to '"..nname.."'") 842 print(S"*** WARNING *** LuaRocks config file already exists: '$CONFIG_FILE'. The old file has been renamed to '"..nname.."'")
843 print("***************") 843 print("***************")