diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-14 14:40:11 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-14 14:40:11 -0300 |
| commit | ec304affa20abc18ba0a6481d760d2714597318f (patch) | |
| tree | 4f11a0ea7edb5c3ec623bbe7a5b654ffb75b7142 | |
| parent | 130f460fca140b2873d284d0057b326b64621d1d (diff) | |
| download | luarocks-ec304affa20abc18ba0a6481d760d2714597318f.tar.gz luarocks-ec304affa20abc18ba0a6481d760d2714597318f.tar.bz2 luarocks-ec304affa20abc18ba0a6481d760d2714597318f.zip | |
Fix detection of existing configuration.
| -rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -385,8 +385,8 @@ then | |||
| 385 | elif [ -e "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" ] | 385 | elif [ -e "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" ] |
| 386 | then | 386 | then |
| 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" |
| 390 | elif [ -e "$PREFIX/share/lua/$LUA_OTHER_VERSION/luarocks/site_config.lua" ] | 390 | elif [ -e "$PREFIX/share/lua/$LUA_OTHER_VERSION/luarocks/site_config.lua" ] |
| 391 | then | 391 | then |
| 392 | echo "Existing installation detected for other Lua version ($LUA_OTHER_VERSION)." | 392 | echo "Existing installation detected for other Lua version ($LUA_OTHER_VERSION)." |
