aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-04-14 14:40:11 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-04-14 14:40:11 -0300
commitec304affa20abc18ba0a6481d760d2714597318f (patch)
tree4f11a0ea7edb5c3ec623bbe7a5b654ffb75b7142
parent130f460fca140b2873d284d0057b326b64621d1d (diff)
downloadluarocks-ec304affa20abc18ba0a6481d760d2714597318f.tar.gz
luarocks-ec304affa20abc18ba0a6481d760d2714597318f.tar.bz2
luarocks-ec304affa20abc18ba0a6481d760d2714597318f.zip
Fix detection of existing configuration.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 42ecf03b..4f4a7c3e 100755
--- a/configure
+++ b/configure
@@ -385,8 +385,8 @@ then
385elif [ -e "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" ] 385elif [ -e "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" ]
386then 386then
387 echo "Existing installation detected." 387 echo "Existing installation detected."
388 LUAROCKS_ROCKS_SUBDIR=`grep "LUAROCKS_ROCKS_SUBDIR" "$PREFIX/lib/lua/$LUA_VERSION/luarocks/site_config.lua" | sed 's,.*=\[\[(.*)\]\],\1,'` 388 LUAROCKS_ROCKS_SUBDIR=`grep "LUAROCKS_ROCKS_SUBDIR" "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" | sed 's,.*=\[\[\(.*\)\]\],\1,'`
389 echo "Using previously configured rocks dir: $LUAROCKS_ROCKS_DIR" 389 echo "Using previously configured rocks dir: $PREFIX$LUAROCKS_ROCKS_SUBDIR"
390elif [ -e "$PREFIX/share/lua/$LUA_OTHER_VERSION/luarocks/site_config.lua" ] 390elif [ -e "$PREFIX/share/lua/$LUA_OTHER_VERSION/luarocks/site_config.lua" ]
391then 391then
392 echo "Existing installation detected for other Lua version ($LUA_OTHER_VERSION)." 392 echo "Existing installation detected for other Lua version ($LUA_OTHER_VERSION)."