diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-31 16:31:28 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-31 16:31:28 +0300 |
commit | d524b515c67ceded00a15c2617283f81a2f21f7c (patch) | |
tree | 25d006b9bafc7da824f49df9c963ac06fd663007 /src | |
parent | 2cfc2c252304626ace9ad1700d056640a20770d2 (diff) | |
download | luarocks-d524b515c67ceded00a15c2617283f81a2f21f7c.tar.gz luarocks-d524b515c67ceded00a15c2617283f81a2f21f7c.tar.bz2 luarocks-d524b515c67ceded00a15c2617283f81a2f21f7c.zip |
Remove commented module() calls
Diffstat (limited to 'src')
51 files changed, 0 insertions, 51 deletions
diff --git a/src/luarocks/add.lua b/src/luarocks/add.lua index ccd303e6..bea2d861 100644 --- a/src/luarocks/add.lua +++ b/src/luarocks/add.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the luarocks-admin "add" command. | 2 | --- Module implementing the luarocks-admin "add" command. |
3 | -- Adds a rock or rockspec to a rocks server. | 3 | -- Adds a rock or rockspec to a rocks server. |
4 | --module("luarocks.add", package.seeall) | ||
5 | local add = {} | 4 | local add = {} |
6 | package.loaded["luarocks.add"] = add | 5 | package.loaded["luarocks.add"] = add |
7 | 6 | ||
diff --git a/src/luarocks/admin_remove.lua b/src/luarocks/admin_remove.lua index 5a1cf20b..59ca4975 100644 --- a/src/luarocks/admin_remove.lua +++ b/src/luarocks/admin_remove.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the luarocks-admin "remove" command. | 2 | --- Module implementing the luarocks-admin "remove" command. |
3 | -- Removes a rock or rockspec from a rocks server. | 3 | -- Removes a rock or rockspec from a rocks server. |
4 | --module("luarocks.admin_remove", package.seeall) | ||
5 | local admin_remove = {} | 4 | local admin_remove = {} |
6 | package.loaded["luarocks.admin_remove"] = admin_remove | 5 | package.loaded["luarocks.admin_remove"] = admin_remove |
7 | 6 | ||
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index c62e4694..edf4efb4 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "build" command. | 2 | --- Module implementing the LuaRocks "build" command. |
3 | -- Builds a rock, compiling its C parts if any. | 3 | -- Builds a rock, compiling its C parts if any. |
4 | --module("luarocks.build", package.seeall) | ||
5 | local build = {} | 4 | local build = {} |
6 | package.loaded["luarocks.build"] = build | 5 | package.loaded["luarocks.build"] = build |
7 | 6 | ||
diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua index b6062bd7..b6f53271 100644 --- a/src/luarocks/build/builtin.lua +++ b/src/luarocks/build/builtin.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- A builtin build system: back-end to provide a portable way of building C-based Lua modules. | 2 | --- A builtin build system: back-end to provide a portable way of building C-based Lua modules. |
3 | --module("luarocks.build.builtin", package.seeall) | ||
4 | local builtin = {} | 3 | local builtin = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/build/cmake.lua b/src/luarocks/build/cmake.lua index 7b16fa51..da5a31f1 100644 --- a/src/luarocks/build/cmake.lua +++ b/src/luarocks/build/cmake.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Build back-end for CMake-based modules. | 2 | --- Build back-end for CMake-based modules. |
3 | --module("luarocks.build.cmake", package.seeall) | ||
4 | local cmake = {} | 3 | local cmake = {} |
5 | 4 | ||
6 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/build/command.lua b/src/luarocks/build/command.lua index 650e3236..62dbc282 100644 --- a/src/luarocks/build/command.lua +++ b/src/luarocks/build/command.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Build back-end for raw listing of commands in rockspec files. | 2 | --- Build back-end for raw listing of commands in rockspec files. |
3 | --module("luarocks.build.command", package.seeall) | ||
4 | local command = {} | 3 | local command = {} |
5 | 4 | ||
6 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/build/make.lua b/src/luarocks/build/make.lua index 0da183e9..69e73c2e 100644 --- a/src/luarocks/build/make.lua +++ b/src/luarocks/build/make.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Build back-end for using Makefile-based packages. | 2 | --- Build back-end for using Makefile-based packages. |
3 | --module("luarocks.build.make", package.seeall) | ||
4 | local make = {} | 3 | local make = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/cache.lua b/src/luarocks/cache.lua index fb6344d8..4a95f70e 100644 --- a/src/luarocks/cache.lua +++ b/src/luarocks/cache.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module handling the LuaRocks local cache. | 2 | --- Module handling the LuaRocks local cache. |
3 | -- Adds a rock or rockspec to a rocks server. | 3 | -- Adds a rock or rockspec to a rocks server. |
4 | --module("luarocks.cache", package.seeall) | ||
5 | local cache = {} | 4 | local cache = {} |
6 | package.loaded["luarocks.cache"] = cache | 5 | package.loaded["luarocks.cache"] = cache |
7 | 6 | ||
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index a016fc72..b3284534 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Functions for command-line scripts. | 2 | --- Functions for command-line scripts. |
3 | --module("luarocks.command_line", package.seeall) | ||
4 | local command_line = {} | 3 | local command_line = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index 536b6c51..44998220 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua | |||
@@ -11,7 +11,6 @@ | |||
11 | -- comparison criteria is the source code of this module, but the | 11 | -- comparison criteria is the source code of this module, but the |
12 | -- test/test_deps.lua file included with LuaRocks provides some | 12 | -- test/test_deps.lua file included with LuaRocks provides some |
13 | -- insights on what these criteria are. | 13 | -- insights on what these criteria are. |
14 | --module("luarocks.deps", package.seeall) | ||
15 | local deps = {} | 14 | local deps = {} |
16 | package.loaded["luarocks.deps"] = deps | 15 | package.loaded["luarocks.deps"] = deps |
17 | 16 | ||
diff --git a/src/luarocks/dir.lua b/src/luarocks/dir.lua index 2ef9881e..f72ebd6c 100644 --- a/src/luarocks/dir.lua +++ b/src/luarocks/dir.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Generic utilities for handling pathnames. | 2 | --- Generic utilities for handling pathnames. |
3 | --module("luarocks.dir", package.seeall) | ||
4 | local dir = {} | 3 | local dir = {} |
5 | package.loaded["luarocks.dir"] = dir | 4 | package.loaded["luarocks.dir"] = dir |
6 | 5 | ||
diff --git a/src/luarocks/doc.lua b/src/luarocks/doc.lua index 53ed0116..62e80232 100644 --- a/src/luarocks/doc.lua +++ b/src/luarocks/doc.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "doc" command. | 2 | --- Module implementing the LuaRocks "doc" command. |
3 | -- Shows documentation for an installed rock. | 3 | -- Shows documentation for an installed rock. |
4 | --module("luarocks.doc", package.seeall) | ||
5 | local doc = {} | 4 | local doc = {} |
6 | package.loaded["luarocks.doc"] = doc | 5 | package.loaded["luarocks.doc"] = doc |
7 | 6 | ||
diff --git a/src/luarocks/download.lua b/src/luarocks/download.lua index 6d95d8fd..181aca75 100644 --- a/src/luarocks/download.lua +++ b/src/luarocks/download.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the luarocks "download" command. | 2 | --- Module implementing the luarocks "download" command. |
3 | -- Download a rock from the repository. | 3 | -- Download a rock from the repository. |
4 | --module("luarocks.download", package.seeall) | ||
5 | local download = {} | 4 | local download = {} |
6 | package.loaded["luarocks.download"] = download | 5 | package.loaded["luarocks.download"] = download |
7 | 6 | ||
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index 2c028771..dfa6f191 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Functions related to fetching and loading local and remote files. | 2 | --- Functions related to fetching and loading local and remote files. |
3 | --module("luarocks.fetch", package.seeall) | ||
4 | local fetch = {} | 3 | local fetch = {} |
5 | package.loaded["luarocks.fetch"] = fetch | 4 | package.loaded["luarocks.fetch"] = fetch |
6 | 5 | ||
diff --git a/src/luarocks/fetch/cvs.lua b/src/luarocks/fetch/cvs.lua index ccf928c4..ece711b6 100644 --- a/src/luarocks/fetch/cvs.lua +++ b/src/luarocks/fetch/cvs.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Fetch back-end for retrieving sources from CVS. | 2 | --- Fetch back-end for retrieving sources from CVS. |
3 | --module("luarocks.fetch.cvs", package.seeall) | ||
4 | local cvs = {} | 3 | local cvs = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index a635f190..f61d89e9 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Fetch back-end for retrieving sources from GIT. | 2 | --- Fetch back-end for retrieving sources from GIT. |
3 | --module("luarocks.fetch.git", package.seeall) | ||
4 | local git = {} | 3 | local git = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/fetch/git_file.lua b/src/luarocks/fetch/git_file.lua index 0144bc2e..8d46bbca 100644 --- a/src/luarocks/fetch/git_file.lua +++ b/src/luarocks/fetch/git_file.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Fetch back-end for retrieving sources from local Git repositories. | 2 | --- Fetch back-end for retrieving sources from local Git repositories. |
3 | --module("luarocks.fetch.git_file", package.seeall) | ||
4 | local git_file = {} | 3 | local git_file = {} |
5 | 4 | ||
6 | local git = require("luarocks.fetch.git") | 5 | local git = require("luarocks.fetch.git") |
diff --git a/src/luarocks/fetch/git_http.lua b/src/luarocks/fetch/git_http.lua index 4ecd4816..d85e2572 100644 --- a/src/luarocks/fetch/git_http.lua +++ b/src/luarocks/fetch/git_http.lua | |||
@@ -7,7 +7,6 @@ | |||
7 | -- source = { url = "git+http://example.com/foo.git" } | 7 | -- source = { url = "git+http://example.com/foo.git" } |
8 | -- Prefer using the normal git:// fetch mode as it is more widely | 8 | -- Prefer using the normal git:// fetch mode as it is more widely |
9 | -- available in older versions of LuaRocks. | 9 | -- available in older versions of LuaRocks. |
10 | --module("luarocks.fetch.git_http", package.seeall) | ||
11 | local git_http = {} | 10 | local git_http = {} |
12 | 11 | ||
13 | local git = require("luarocks.fetch.git") | 12 | local git = require("luarocks.fetch.git") |
diff --git a/src/luarocks/fetch/hg.lua b/src/luarocks/fetch/hg.lua index 518130b4..4cf8d028 100644 --- a/src/luarocks/fetch/hg.lua +++ b/src/luarocks/fetch/hg.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Fetch back-end for retrieving sources from HG. | 2 | --- Fetch back-end for retrieving sources from HG. |
3 | --module("luarocks.fetch.hg", package.seeall) | ||
4 | local hg = {} | 3 | local hg = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/fetch/sscm.lua b/src/luarocks/fetch/sscm.lua index 53ae86a3..5add10db 100644 --- a/src/luarocks/fetch/sscm.lua +++ b/src/luarocks/fetch/sscm.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Fetch back-end for retrieving sources from Surround SCM Server | 2 | --- Fetch back-end for retrieving sources from Surround SCM Server |
3 | --module("luarocks.fetch.sscm", package.seeall) | ||
4 | local sscm = {} | 3 | local sscm = {} |
5 | 4 | ||
6 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/fetch/svn.lua b/src/luarocks/fetch/svn.lua index 755e5e32..29bce1b5 100644 --- a/src/luarocks/fetch/svn.lua +++ b/src/luarocks/fetch/svn.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Fetch back-end for retrieving sources from Subversion. | 2 | --- Fetch back-end for retrieving sources from Subversion. |
3 | --module("luarocks.fetch.svn", package.seeall) | ||
4 | local svn = {} | 3 | local svn = {} |
5 | 4 | ||
6 | local unpack = unpack or table.unpack | 5 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/fs.lua b/src/luarocks/fs.lua index f3d86a13..54cc7d73 100644 --- a/src/luarocks/fs.lua +++ b/src/luarocks/fs.lua | |||
@@ -7,7 +7,6 @@ | |||
7 | 7 | ||
8 | local pairs = pairs | 8 | local pairs = pairs |
9 | 9 | ||
10 | --module("luarocks.fs", package.seeall) | ||
11 | local fs = {} | 10 | local fs = {} |
12 | package.loaded["luarocks.fs"] = fs | 11 | package.loaded["luarocks.fs"] = fs |
13 | 12 | ||
diff --git a/src/luarocks/fs/unix.lua b/src/luarocks/fs/unix.lua index 520b3e99..5c6b542c 100644 --- a/src/luarocks/fs/unix.lua +++ b/src/luarocks/fs/unix.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Unix implementation of filesystem and platform abstractions. | 2 | --- Unix implementation of filesystem and platform abstractions. |
3 | --module("luarocks.fs.unix", package.seeall) | ||
4 | local unix = {} | 3 | local unix = {} |
5 | 4 | ||
6 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 84bd53fd..7a67fb22 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- fs operations implemented with third-party tools for Unix platform abstractions. | 2 | --- fs operations implemented with third-party tools for Unix platform abstractions. |
3 | --module("luarocks.fs.unix.tools", package.seeall) | ||
4 | local tools = {} | 3 | local tools = {} |
5 | 4 | ||
6 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/fs/win32.lua b/src/luarocks/fs/win32.lua index 74f3ed69..8debaeef 100644 --- a/src/luarocks/fs/win32.lua +++ b/src/luarocks/fs/win32.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | --- Windows implementation of filesystem and platform abstractions. | 1 | --- Windows implementation of filesystem and platform abstractions. |
2 | -- Download http://unxutils.sourceforge.net/ for Windows GNU utilities | 2 | -- Download http://unxutils.sourceforge.net/ for Windows GNU utilities |
3 | -- used by this module. | 3 | -- used by this module. |
4 | --module("luarocks.fs.win32", package.seeall) | ||
5 | local win32 = {} | 4 | local win32 = {} |
6 | 5 | ||
7 | local fs = require("luarocks.fs") | 6 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 9cb6d47a..1d47fa59 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -2,7 +2,6 @@ | |||
2 | --- fs operations implemented with third-party tools for Windows platform abstractions. | 2 | --- fs operations implemented with third-party tools for Windows platform abstractions. |
3 | -- Download http://unxutils.sourceforge.net/ for Windows GNU utilities | 3 | -- Download http://unxutils.sourceforge.net/ for Windows GNU utilities |
4 | -- used by this module. | 4 | -- used by this module. |
5 | --module("luarocks.fs.win32.tools", package.seeall) | ||
6 | local tools = {} | 5 | local tools = {} |
7 | 6 | ||
8 | local fs = require("luarocks.fs") | 7 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/help.lua b/src/luarocks/help.lua index 5a2681a3..0f66f64b 100644 --- a/src/luarocks/help.lua +++ b/src/luarocks/help.lua | |||
@@ -4,7 +4,6 @@ | |||
4 | -- uses a global table called "commands" to find commands | 4 | -- uses a global table called "commands" to find commands |
5 | -- to show help for; each command should be represented by a | 5 | -- to show help for; each command should be represented by a |
6 | -- table containing "help" and "help_summary" fields. | 6 | -- table containing "help" and "help_summary" fields. |
7 | --module("luarocks.help", package.seeall) | ||
8 | local help = {} | 7 | local help = {} |
9 | 8 | ||
10 | local util = require("luarocks.util") | 9 | local util = require("luarocks.util") |
diff --git a/src/luarocks/index.lua b/src/luarocks/index.lua index 116bdfd2..e1f563ef 100644 --- a/src/luarocks/index.lua +++ b/src/luarocks/index.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Module which builds the index.html page to be used in rocks servers. | 2 | --- Module which builds the index.html page to be used in rocks servers. |
3 | --module("luarocks.index", package.seeall) | ||
4 | local index = {} | 3 | local index = {} |
5 | package.loaded["luarocks.index"] = index | 4 | package.loaded["luarocks.index"] = index |
6 | 5 | ||
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua index e3ab6fac..f78c6a0d 100644 --- a/src/luarocks/install.lua +++ b/src/luarocks/install.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | --- Module implementing the LuaRocks "install" command. | 1 | --- Module implementing the LuaRocks "install" command. |
2 | -- Installs binary rocks. | 2 | -- Installs binary rocks. |
3 | --module("luarocks.install", package.seeall) | ||
4 | local install = {} | 3 | local install = {} |
5 | package.loaded["luarocks.install"] = install | 4 | package.loaded["luarocks.install"] = install |
6 | 5 | ||
diff --git a/src/luarocks/lint.lua b/src/luarocks/lint.lua index 091c8de4..81d8bab2 100644 --- a/src/luarocks/lint.lua +++ b/src/luarocks/lint.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "lint" command. | 2 | --- Module implementing the LuaRocks "lint" command. |
3 | -- Utility function that checks syntax of the rockspec. | 3 | -- Utility function that checks syntax of the rockspec. |
4 | --module("luarocks.lint", package.seeall) | ||
5 | local lint = {} | 4 | local lint = {} |
6 | package.loaded["luarocks.lint"] = lint | 5 | package.loaded["luarocks.lint"] = lint |
7 | 6 | ||
diff --git a/src/luarocks/list.lua b/src/luarocks/list.lua index 8affc52f..09fa9ad7 100644 --- a/src/luarocks/list.lua +++ b/src/luarocks/list.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "list" command. | 2 | --- Module implementing the LuaRocks "list" command. |
3 | -- Lists currently installed rocks. | 3 | -- Lists currently installed rocks. |
4 | --module("luarocks.list", package.seeall) | ||
5 | local list = {} | 4 | local list = {} |
6 | package.loaded["luarocks.list"] = list | 5 | package.loaded["luarocks.list"] = list |
7 | 6 | ||
diff --git a/src/luarocks/make.lua b/src/luarocks/make.lua index 6a74f6fe..9d675884 100644 --- a/src/luarocks/make.lua +++ b/src/luarocks/make.lua | |||
@@ -3,7 +3,6 @@ | |||
3 | -- Builds sources in the current directory, but unlike "build", | 3 | -- Builds sources in the current directory, but unlike "build", |
4 | -- it does not fetch sources, etc., assuming everything is | 4 | -- it does not fetch sources, etc., assuming everything is |
5 | -- available in the current directory. | 5 | -- available in the current directory. |
6 | --module("luarocks.make", package.seeall) | ||
7 | local make = {} | 6 | local make = {} |
8 | package.loaded["luarocks.make"] = make | 7 | package.loaded["luarocks.make"] = make |
9 | 8 | ||
diff --git a/src/luarocks/make_manifest.lua b/src/luarocks/make_manifest.lua index b6e65bf8..3d9a6bac 100644 --- a/src/luarocks/make_manifest.lua +++ b/src/luarocks/make_manifest.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the luarocks-admin "make_manifest" command. | 2 | --- Module implementing the luarocks-admin "make_manifest" command. |
3 | -- Compile a manifest file for a repository. | 3 | -- Compile a manifest file for a repository. |
4 | --module("luarocks.make_manifest", package.seeall) | ||
5 | local make_manifest = {} | 4 | local make_manifest = {} |
6 | package.loaded["luarocks.make_manifest"] = make_manifest | 5 | package.loaded["luarocks.make_manifest"] = make_manifest |
7 | 6 | ||
diff --git a/src/luarocks/manif.lua b/src/luarocks/manif.lua index bc202be3..e30c2a33 100644 --- a/src/luarocks/manif.lua +++ b/src/luarocks/manif.lua | |||
@@ -2,7 +2,6 @@ | |||
2 | -- Manifest files describe the contents of a LuaRocks tree or server. | 2 | -- Manifest files describe the contents of a LuaRocks tree or server. |
3 | -- They are loaded into manifest tables, which are then used for | 3 | -- They are loaded into manifest tables, which are then used for |
4 | -- performing searches, matching dependencies, etc. | 4 | -- performing searches, matching dependencies, etc. |
5 | --module("luarocks.manif", package.seeall) | ||
6 | local manif = {} | 5 | local manif = {} |
7 | package.loaded["luarocks.manif"] = manif | 6 | package.loaded["luarocks.manif"] = manif |
8 | 7 | ||
diff --git a/src/luarocks/manif_core.lua b/src/luarocks/manif_core.lua index 610f9860..5c8928d4 100644 --- a/src/luarocks/manif_core.lua +++ b/src/luarocks/manif_core.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Core functions for querying manifest files. | 2 | --- Core functions for querying manifest files. |
3 | -- This module requires no specific 'fs' functionality. | 3 | -- This module requires no specific 'fs' functionality. |
4 | --module("luarocks.manif_core", package.seeall) | ||
5 | local manif_core = {} | 4 | local manif_core = {} |
6 | package.loaded["luarocks.manif_core"] = manif_core | 5 | package.loaded["luarocks.manif_core"] = manif_core |
7 | 6 | ||
diff --git a/src/luarocks/pack.lua b/src/luarocks/pack.lua index e4498f5a..685b84bd 100644 --- a/src/luarocks/pack.lua +++ b/src/luarocks/pack.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "pack" command. | 2 | --- Module implementing the LuaRocks "pack" command. |
3 | -- Creates a rock, packing sources or binaries. | 3 | -- Creates a rock, packing sources or binaries. |
4 | --module("luarocks.pack", package.seeall) | ||
5 | local pack = {} | 4 | local pack = {} |
6 | package.loaded["luarocks.pack"] = pack | 5 | package.loaded["luarocks.pack"] = pack |
7 | 6 | ||
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index bc7ab63b..dafc64e7 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua | |||
@@ -2,7 +2,6 @@ | |||
2 | --- LuaRocks-specific path handling functions. | 2 | --- LuaRocks-specific path handling functions. |
3 | -- All paths are configured in this module, making it a single | 3 | -- All paths are configured in this module, making it a single |
4 | -- point where the layout of the local installation is defined in LuaRocks. | 4 | -- point where the layout of the local installation is defined in LuaRocks. |
5 | --module("luarocks.path", package.seeall) | ||
6 | local path = {} | 5 | local path = {} |
7 | 6 | ||
8 | local dir = require("luarocks.dir") | 7 | local dir = require("luarocks.dir") |
diff --git a/src/luarocks/persist.lua b/src/luarocks/persist.lua index 9407b2a4..c2adb570 100644 --- a/src/luarocks/persist.lua +++ b/src/luarocks/persist.lua | |||
@@ -3,7 +3,6 @@ | |||
3 | -- saving tables into files. | 3 | -- saving tables into files. |
4 | -- Implemented separately to avoid interdependencies, | 4 | -- Implemented separately to avoid interdependencies, |
5 | -- as it is used in the bootstrapping stage of the cfg module. | 5 | -- as it is used in the bootstrapping stage of the cfg module. |
6 | --module("luarocks.persist", package.seeall) | ||
7 | local persist = {} | 6 | local persist = {} |
8 | package.loaded["luarocks.persist"] = persist | 7 | package.loaded["luarocks.persist"] = persist |
9 | 8 | ||
diff --git a/src/luarocks/purge.lua b/src/luarocks/purge.lua index bd5494f6..0be6ef21 100644 --- a/src/luarocks/purge.lua +++ b/src/luarocks/purge.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "purge" command. | 2 | --- Module implementing the LuaRocks "purge" command. |
3 | -- Remove all rocks from a given tree. | 3 | -- Remove all rocks from a given tree. |
4 | --module("luarocks.purge", package.seeall) | ||
5 | local purge = {} | 4 | local purge = {} |
6 | package.loaded["luarocks.purge"] = purge | 5 | package.loaded["luarocks.purge"] = purge |
7 | 6 | ||
diff --git a/src/luarocks/refresh_cache.lua b/src/luarocks/refresh_cache.lua index 193e5994..cc5b9c33 100644 --- a/src/luarocks/refresh_cache.lua +++ b/src/luarocks/refresh_cache.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Module implementing the luarocks-admin "refresh_cache" command. | 2 | --- Module implementing the luarocks-admin "refresh_cache" command. |
3 | --module("luarocks.refresh_cache", package.seeall) | ||
4 | local refresh_cache = {} | 3 | local refresh_cache = {} |
5 | package.loaded["luarocks.refresh_cache"] = refresh_cache | 4 | package.loaded["luarocks.refresh_cache"] = refresh_cache |
6 | 5 | ||
diff --git a/src/luarocks/remove.lua b/src/luarocks/remove.lua index 4aff3946..7a559f8f 100644 --- a/src/luarocks/remove.lua +++ b/src/luarocks/remove.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "remove" command. | 2 | --- Module implementing the LuaRocks "remove" command. |
3 | -- Uninstalls rocks. | 3 | -- Uninstalls rocks. |
4 | --module("luarocks.remove", package.seeall) | ||
5 | local remove = {} | 4 | local remove = {} |
6 | package.loaded["luarocks.remove"] = remove | 5 | package.loaded["luarocks.remove"] = remove |
7 | 6 | ||
diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua index b6d5825a..86126a13 100644 --- a/src/luarocks/repos.lua +++ b/src/luarocks/repos.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Functions for managing the repository on disk. | 2 | --- Functions for managing the repository on disk. |
3 | --module("luarocks.repos", package.seeall) | ||
4 | local repos = {} | 3 | local repos = {} |
5 | package.loaded["luarocks.repos"] = repos | 4 | package.loaded["luarocks.repos"] = repos |
6 | 5 | ||
diff --git a/src/luarocks/search.lua b/src/luarocks/search.lua index 6c0020c0..4ec0c65e 100644 --- a/src/luarocks/search.lua +++ b/src/luarocks/search.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "search" command. | 2 | --- Module implementing the LuaRocks "search" command. |
3 | -- Queries LuaRocks servers. | 3 | -- Queries LuaRocks servers. |
4 | --module("luarocks.search", package.seeall) | ||
5 | local search = {} | 4 | local search = {} |
6 | package.loaded["luarocks.search"] = search | 5 | package.loaded["luarocks.search"] = search |
7 | 6 | ||
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua index ae41a513..1dc01cc0 100644 --- a/src/luarocks/show.lua +++ b/src/luarocks/show.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | --- Module implementing the LuaRocks "show" command. | 1 | --- Module implementing the LuaRocks "show" command. |
2 | -- Shows information about an installed rock. | 2 | -- Shows information about an installed rock. |
3 | --module("luarocks.show", package.seeall) | ||
4 | local show = {} | 3 | local show = {} |
5 | package.loaded["luarocks.show"] = show | 4 | package.loaded["luarocks.show"] = show |
6 | 5 | ||
diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua index debaf636..44d00ef8 100644 --- a/src/luarocks/tools/patch.lua +++ b/src/luarocks/tools/patch.lua | |||
@@ -8,7 +8,6 @@ | |||
8 | -- Project home: http://code.google.com/p/python-patch/ . | 8 | -- Project home: http://code.google.com/p/python-patch/ . |
9 | -- Version 0.1 | 9 | -- Version 0.1 |
10 | 10 | ||
11 | --module("luarocks.tools.patch", package.seeall) | ||
12 | local patch = {} | 11 | local patch = {} |
13 | 12 | ||
14 | local fs = require("luarocks.fs") | 13 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/tools/tar.lua b/src/luarocks/tools/tar.lua index b2bd930a..637a6c95 100644 --- a/src/luarocks/tools/tar.lua +++ b/src/luarocks/tools/tar.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- A pure-Lua implementation of untar (unpacking .tar archives) | 2 | --- A pure-Lua implementation of untar (unpacking .tar archives) |
3 | --module("luarocks.tools.tar", package.seeall) | ||
4 | local tar = {} | 3 | local tar = {} |
5 | 4 | ||
6 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index 65b4fc15..82763401 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | --- Type-checking functions. | 1 | --- Type-checking functions. |
2 | -- Functions and definitions for doing a basic lint check on files | 2 | -- Functions and definitions for doing a basic lint check on files |
3 | -- loaded by LuaRocks. | 3 | -- loaded by LuaRocks. |
4 | --module("luarocks.type_check", package.seeall) | ||
5 | local type_check = {} | 4 | local type_check = {} |
6 | package.loaded["luarocks.type_check"] = type_check | 5 | package.loaded["luarocks.type_check"] = type_check |
7 | 6 | ||
diff --git a/src/luarocks/unpack.lua b/src/luarocks/unpack.lua index d90f0571..4afe4547 100644 --- a/src/luarocks/unpack.lua +++ b/src/luarocks/unpack.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | --- Module implementing the LuaRocks "unpack" command. | 2 | --- Module implementing the LuaRocks "unpack" command. |
3 | -- Unpack the contents of a rock. | 3 | -- Unpack the contents of a rock. |
4 | --module("luarocks.unpack", package.seeall) | ||
5 | local unpack = {} | 4 | local unpack = {} |
6 | package.loaded["luarocks.unpack"] = unpack | 5 | package.loaded["luarocks.unpack"] = unpack |
7 | 6 | ||
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 2f419a3d..f7e9b1ae 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -4,7 +4,6 @@ | |||
4 | -- inside specific functions) to avoid interdependencies, | 4 | -- inside specific functions) to avoid interdependencies, |
5 | -- as this is used in the bootstrapping stage of luarocks.cfg. | 5 | -- as this is used in the bootstrapping stage of luarocks.cfg. |
6 | 6 | ||
7 | --module("luarocks.util", package.seeall) | ||
8 | local util = {} | 7 | local util = {} |
9 | 8 | ||
10 | local unpack = unpack or table.unpack | 9 | local unpack = unpack or table.unpack |
diff --git a/src/luarocks/validate.lua b/src/luarocks/validate.lua index e6e09c33..24c6f835 100644 --- a/src/luarocks/validate.lua +++ b/src/luarocks/validate.lua | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | --- Sandboxed test of build/install of all packages in a repository (unfinished and disabled). | 2 | --- Sandboxed test of build/install of all packages in a repository (unfinished and disabled). |
3 | --module("luarocks.validate", package.seeall) | ||
4 | local validate = {} | 3 | local validate = {} |
5 | package.loaded["luarocks.validate"] = validate | 4 | package.loaded["luarocks.validate"] = validate |
6 | 5 | ||
diff --git a/src/luarocks/write_rockspec.lua b/src/luarocks/write_rockspec.lua index 213d1b01..79902bb4 100644 --- a/src/luarocks/write_rockspec.lua +++ b/src/luarocks/write_rockspec.lua | |||
@@ -1,5 +1,4 @@ | |||
1 | 1 | ||
2 | --module("luarocks.write_rockspec", package.seeall) | ||
3 | local write_rockspec = {} | 2 | local write_rockspec = {} |
4 | package.loaded["luarocks.write_rockspec"] = write_rockspec | 3 | package.loaded["luarocks.write_rockspec"] = write_rockspec |
5 | 4 | ||