From eba0f64344ea14c25cbe7b1054739567cd77ec29 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 26 Mar 2014 18:25:16 +0100 Subject: prepare luarocks for lua 5.3 --- install.bat | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'install.bat') diff --git a/install.bat b/install.bat index 287bad5b..93b159a5 100644 --- a/install.bat +++ b/install.bat @@ -138,7 +138,7 @@ Configuring the destinations: if you create a self contained installation. Configuring the Lua interpreter: -/LV [version] Lua version to use; either 5.1 or 5.2. +/LV [version] Lua version to use; either 5.1, 5.2, or 5.3. Default is 5.1 /LUA [dir] Location where Lua is installed - e.g. c:\lua\5.1\ If not provided, the installer will search the system @@ -249,8 +249,10 @@ local function check_flags() if vars.LUA_VERSION ~= "5.1" then if vars.LUA_VERSION == "5.2" then vars.LUA_LIB_NAMES = vars.LUA_LIB_NAMES:gsub("5([%.]?)1", "5%12") + elseif vars.LUA_VERSION == "5.3" then + vars.LUA_LIB_NAMES = vars.LUA_LIB_NAMES:gsub("5([%.]?)1", "5%13") else - die("Bad argument: /LV must either be 5.1 or 5.2") + die("Bad argument: /LV must either be 5.1, 5.2, or 5.3") end end end @@ -701,6 +703,9 @@ SET "LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH%" IF NOT "%LUA_PATH_5_2%"=="" ( SET "LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2%" ) +IF NOT "%LUA_PATH_5_3%"=="" ( + SET "LUA_PATH_5_3=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_3%" +) SET "PATH=$BINDIR;%PATH%" "$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %* IF NOT "%ERRORLEVEL%"=="2" GOTO EXITLR -- cgit v1.2.3-55-g6feb