diff options
Diffstat (limited to 'install.bat')
-rw-r--r-- | install.bat | 8 |
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 | |||
811 | end | 811 | end |
812 | f:write(S[=[ | 812 | f:write(S[=[ |
813 | site_config.LUAROCKS_UNAME_M=[[$UNAME_M]] | 813 | site_config.LUAROCKS_UNAME_M=[[$UNAME_M]] |
814 | site_config.LUAROCKS_SYSCONFIG=[[$SYSCONFDIR\config.lua]] | 814 | site_config.LUAROCKS_SYSCONFIG=[[$SYSCONFDIR\config-$LUA_VERSION.lua]] |
815 | site_config.LUAROCKS_ROCKS_TREE=[[$TREE_ROOT]] | 815 | site_config.LUAROCKS_ROCKS_TREE=[[$TREE_ROOT]] |
816 | site_config.LUAROCKS_PREFIX=[[$PREFIX]] | 816 | site_config.LUAROCKS_PREFIX=[[$PREFIX]] |
817 | site_config.LUAROCKS_DOWNLOADER=[[wget]] | 817 | site_config.LUAROCKS_DOWNLOADER=[[wget]] |
@@ -832,12 +832,12 @@ f:close() | |||
832 | print(S[[Created LuaRocks site-config file: $LUADIR\luarocks\site_config.lua]]) | 832 | print(S[[Created LuaRocks site-config file: $LUADIR\luarocks\site_config.lua]]) |
833 | 833 | ||
834 | -- create config file | 834 | -- create config file |
835 | vars.CONFIG_FILE = vars.SYSCONFDIR.."\\config.lua" | 835 | vars.CONFIG_FILE = vars.SYSCONFDIR..S"\\config-$LUA_VERSION.lua" |
836 | if not exists(vars.SYSCONFDIR) then | 836 | if not exists(vars.SYSCONFDIR) then |
837 | mkdir(vars.SYSCONFDIR) | 837 | mkdir(vars.SYSCONFDIR) |
838 | end | 838 | end |
839 | if exists(vars.CONFIG_FILE) then | 839 | if 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("***************") |