From 2e3b220949cf0fc190c4026136e99c95bdeb5aaa Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 8 Jan 2014 20:38:08 +0100 Subject: fixed test for empty variable in configure script --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ce5e78f8..166d6898 100755 --- a/configure +++ b/configure @@ -286,7 +286,7 @@ fi if [ "$LUA_DIR_SET" != "yes" ] then - if [ -n "$find_lua" ] + if [ -z "$find_lua" ] then echo_n "Looking for Lua... " find_lua=`find_program lua$LUA_SUFFIX` -- cgit v1.2.3-55-g6feb From bbf921412f5d8d6dfde901f6c64e4d1412ced0da Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Fri, 10 Jan 2014 14:23:19 -0800 Subject: Misplaced quote in resulting luarocks.bat file Line 699 is writing this in the .bat file. ~~~~ C:\luarocks\2.1>IF NOT "c:\luarocks52\share\lua\5.2\?.lua;c:\luarocks52\share\lua\5.2\?\init.lua;;" == "" ("SET LUA_PATH_5_2=c:\luarocks\2.1\lua\?.lua;c:\luarocks\2.1\lua\?\init.lua;c:\luarocks52\share\lua\5.2\?.lua;c:\luarocks52\share\lua\5.2\?\init.lua;;") ~~~~ Which prints an error: `The system cannot find the path specified.` It only happens if env var LUA_PATH_5_2 has some value. --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index 22cdd523..dfd94317 100644 --- a/install.bat +++ b/install.bat @@ -696,7 +696,7 @@ for _, c in ipairs{"luarocks", "luarocks-admin"} do SETLOCAL 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%" + SET "LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2%" ) SET "PATH=$BINDIR;%PATH%" "$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %* -- cgit v1.2.3-55-g6feb