diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-07-17 01:25:58 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-07-17 01:25:58 -0300 |
commit | 64153c9560db6484727c6c76e7b5dbc44e879c36 (patch) | |
tree | 7322f774aa8f3309c4c57b1f689f5c636a19b80a | |
parent | 44de5cce2e719ce12da9d67044536ca608068e53 (diff) | |
download | luarocks-2.0.10.tar.gz luarocks-2.0.10.tar.bz2 luarocks-2.0.10.zip |
fix behavior of $(LUA)v2.0.10
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | configure | 1 | ||||
-rw-r--r-- | rockspec | 2 | ||||
-rw-r--r-- | src/luarocks/cfg.lua | 4 |
4 files changed, 8 insertions, 3 deletions
@@ -61,6 +61,10 @@ src/luarocks/site_config.lua: config.unix | |||
61 | then \ | 61 | then \ |
62 | echo "LUAROCKS_FORCE_CONFIG=true" >> src/luarocks/site_config.lua ;\ | 62 | echo "LUAROCKS_FORCE_CONFIG=true" >> src/luarocks/site_config.lua ;\ |
63 | fi | 63 | fi |
64 | if [ "$(LUA_DIR_SET)" = "yes" ] ;\ | ||
65 | then \ | ||
66 | echo "LUA_DIR_SET=true" >> src/luarocks/site_config.lua ;\ | ||
67 | fi | ||
64 | echo "LUAROCKS_UNAME_S=[[$(LUAROCKS_UNAME_S)]]" >> src/luarocks/site_config.lua | 68 | echo "LUAROCKS_UNAME_S=[[$(LUAROCKS_UNAME_S)]]" >> src/luarocks/site_config.lua |
65 | echo "LUAROCKS_UNAME_M=[[$(LUAROCKS_UNAME_M)]]" >> src/luarocks/site_config.lua | 69 | echo "LUAROCKS_UNAME_M=[[$(LUAROCKS_UNAME_M)]]" >> src/luarocks/site_config.lua |
66 | echo "LUAROCKS_DOWNLOADER=[[$(LUAROCKS_DOWNLOADER)]]" >> src/luarocks/site_config.lua | 70 | echo "LUAROCKS_DOWNLOADER=[[$(LUAROCKS_DOWNLOADER)]]" >> src/luarocks/site_config.lua |
@@ -387,6 +387,7 @@ SYSCONFDIR=$SYSCONFDIR | |||
387 | ROCKS_TREE=$ROCKS_TREE | 387 | ROCKS_TREE=$ROCKS_TREE |
388 | LUA_SUFFIX=$LUA_SUFFIX | 388 | LUA_SUFFIX=$LUA_SUFFIX |
389 | LUA_DIR=$LUA_DIR | 389 | LUA_DIR=$LUA_DIR |
390 | LUA_DIR_SET=$LUA_DIR_SET | ||
390 | LUA_INCDIR=$LUA_INCDIR | 391 | LUA_INCDIR=$LUA_INCDIR |
391 | LUA_LIBDIR=$LUA_LIBDIR | 392 | LUA_LIBDIR=$LUA_LIBDIR |
392 | LUA_BINDIR=$LUA_BINDIR | 393 | LUA_BINDIR=$LUA_BINDIR |
@@ -1,5 +1,5 @@ | |||
1 | package = "LuaRocks" | 1 | package = "LuaRocks" |
2 | local VER = "2.0.9" | 2 | local VER = "2.0.10" |
3 | local REV = "1" | 3 | local REV = "1" |
4 | version = VER.."-"..REV | 4 | version = VER.."-"..REV |
5 | 5 | ||
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 48b40586..63285229 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -25,7 +25,7 @@ end | |||
25 | _M.site_config = site_config | 25 | _M.site_config = site_config |
26 | 26 | ||
27 | lua_version = _VERSION:sub(5) | 27 | lua_version = _VERSION:sub(5) |
28 | program_version = "2.0.9" | 28 | program_version = "2.0.10" |
29 | user_agent = "LuaRocks/"..program_version | 29 | user_agent = "LuaRocks/"..program_version |
30 | 30 | ||
31 | local persist = require("luarocks.persist") | 31 | local persist = require("luarocks.persist") |
@@ -389,10 +389,10 @@ if detected.solaris then | |||
389 | end | 389 | end |
390 | 390 | ||
391 | -- Expose some more values detected by LuaRocks for use by rockspec authors. | 391 | -- Expose some more values detected by LuaRocks for use by rockspec authors. |
392 | defaults.variables.LUA = defaults.lua_interpreter | ||
393 | defaults.variables.LIB_EXTENSION = defaults.lib_extension | 392 | defaults.variables.LIB_EXTENSION = defaults.lib_extension |
394 | defaults.variables.OBJ_EXTENSION = defaults.obj_extension | 393 | defaults.variables.OBJ_EXTENSION = defaults.obj_extension |
395 | defaults.variables.LUAROCKS_PREFIX = site_config.LUAROCKS_PREFIX | 394 | defaults.variables.LUAROCKS_PREFIX = site_config.LUAROCKS_PREFIX |
395 | defaults.variables.LUA = site_config.LUA_DIR_SET and (defaults.variables.LUA_BINDIR.."/"..defaults.lua_interpreter) or defaults.lua_interpreter | ||
396 | 396 | ||
397 | -- Use defaults: | 397 | -- Use defaults: |
398 | 398 | ||