From 6a196aca575412fcf9e1e5e69389c6e34d86cf2d Mon Sep 17 00:00:00 2001 From: hisham Date: Sat, 27 Jun 2009 21:23:28 +0000 Subject: disencourage deprecated name git-svn-id: http://luarocks.org/svn/luarocks/trunk@31 9ca3f7c1-7366-0410-b1a3-b5c78f85698c --- src/luarocks/build.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index 74e80d62..a6fe1c45 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua @@ -137,7 +137,7 @@ function build_rockspec(rockspec_file, need_to_fetch, minimal_mode) end fs.change_dir(rockspec.source.dir) end - + local dirs = { lua = path.lua_dir(name, version), lib = path.lib_dir(name, version), @@ -165,7 +165,10 @@ function build_rockspec(rockspec_file, need_to_fetch, minimal_mode) if build.type ~= "none" then -- Temporary compatibility - if build.type == "module" then build.type = "builtin" end + if build.type == "module" then + print("Do not use 'module' as a build type. Use 'builtin' instead.") + build.type = "builtin" + end ok, build_type = pcall(require, "luarocks.build." .. build.type) if not ok or not type(build_type) == "table" then -- cgit v1.2.3-55-g6feb