aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index cd9e5a8f..251ab00d 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -69,6 +69,7 @@ $(builddir)/luarocks: src/bin/luarocks config.unix
69 'package.loaded["luarocks.core.hardcoded"] = { '\ 69 'package.loaded["luarocks.core.hardcoded"] = { '\
70 "$$([ -n "$(FORCE_CONFIG)" ] && printf 'FORCE_CONFIG = true, ')"\ 70 "$$([ -n "$(FORCE_CONFIG)" ] && printf 'FORCE_CONFIG = true, ')"\
71 'SYSCONFDIR = [[$(luarocksconfdir)]] }\n'\ 71 'SYSCONFDIR = [[$(luarocksconfdir)]] }\n'\
72 'package.path=[[$(luadir)/?.lua;]] .. package.path\n'; \
72 'local list = package.searchers or package.loaders; table.insert(list, 1, function(name) if name:match("^luarocks%%.") then return loadfile([[$(luadir)/]] .. name:gsub([[%%.]], [[/]]) .. [[.lua]]) end end)\n'; \ 73 'local list = package.searchers or package.loaders; table.insert(list, 1, function(name) if name:match("^luarocks%%.") then return loadfile([[$(luadir)/]] .. name:gsub([[%%.]], [[/]]) .. [[.lua]]) end end)\n'; \
73 tail -n +2 src/bin/luarocks \ 74 tail -n +2 src/bin/luarocks \
74 )> "$@" 75 )> "$@"
@@ -79,6 +80,7 @@ $(builddir)/luarocks-admin: src/bin/luarocks-admin config.unix
79 'package.loaded["luarocks.core.hardcoded"] = { '\ 80 'package.loaded["luarocks.core.hardcoded"] = { '\
80 "$$([ -n "$(FORCE_CONFIG)" ] && printf 'FORCE_CONFIG = true, ')"\ 81 "$$([ -n "$(FORCE_CONFIG)" ] && printf 'FORCE_CONFIG = true, ')"\
81 'SYSCONFDIR = [[$(luarocksconfdir)]] }\n'\ 82 'SYSCONFDIR = [[$(luarocksconfdir)]] }\n'\
83 'package.path=[[$(luadir)/?.lua;]] .. package.path\n'; \
82 'local list = package.searchers or package.loaders; table.insert(list, 1, function(name) if name:match("^luarocks%%.") then return loadfile([[$(luadir)/]] .. name:gsub([[%%.]], [[/]]) .. [[.lua]]) end end)\n'; \ 84 'local list = package.searchers or package.loaders; table.insert(list, 1, function(name) if name:match("^luarocks%%.") then return loadfile([[$(luadir)/]] .. name:gsub([[%%.]], [[/]]) .. [[.lua]]) end end)\n'; \
83 tail -n +2 src/bin/luarocks-admin \ 85 tail -n +2 src/bin/luarocks-admin \
84 )> "$@" 86 )> "$@"