aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-05-31 16:31:28 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-05-31 16:31:28 +0300
commitd524b515c67ceded00a15c2617283f81a2f21f7c (patch)
tree25d006b9bafc7da824f49df9c963ac06fd663007 /src
parent2cfc2c252304626ace9ad1700d056640a20770d2 (diff)
downloadluarocks-d524b515c67ceded00a15c2617283f81a2f21f7c.tar.gz
luarocks-d524b515c67ceded00a15c2617283f81a2f21f7c.tar.bz2
luarocks-d524b515c67ceded00a15c2617283f81a2f21f7c.zip
Remove commented module() calls
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/add.lua1
-rw-r--r--src/luarocks/admin_remove.lua1
-rw-r--r--src/luarocks/build.lua1
-rw-r--r--src/luarocks/build/builtin.lua1
-rw-r--r--src/luarocks/build/cmake.lua1
-rw-r--r--src/luarocks/build/command.lua1
-rw-r--r--src/luarocks/build/make.lua1
-rw-r--r--src/luarocks/cache.lua1
-rw-r--r--src/luarocks/command_line.lua1
-rw-r--r--src/luarocks/deps.lua1
-rw-r--r--src/luarocks/dir.lua1
-rw-r--r--src/luarocks/doc.lua1
-rw-r--r--src/luarocks/download.lua1
-rw-r--r--src/luarocks/fetch.lua1
-rw-r--r--src/luarocks/fetch/cvs.lua1
-rw-r--r--src/luarocks/fetch/git.lua1
-rw-r--r--src/luarocks/fetch/git_file.lua1
-rw-r--r--src/luarocks/fetch/git_http.lua1
-rw-r--r--src/luarocks/fetch/hg.lua1
-rw-r--r--src/luarocks/fetch/sscm.lua1
-rw-r--r--src/luarocks/fetch/svn.lua1
-rw-r--r--src/luarocks/fs.lua1
-rw-r--r--src/luarocks/fs/unix.lua1
-rw-r--r--src/luarocks/fs/unix/tools.lua1
-rw-r--r--src/luarocks/fs/win32.lua1
-rw-r--r--src/luarocks/fs/win32/tools.lua1
-rw-r--r--src/luarocks/help.lua1
-rw-r--r--src/luarocks/index.lua1
-rw-r--r--src/luarocks/install.lua1
-rw-r--r--src/luarocks/lint.lua1
-rw-r--r--src/luarocks/list.lua1
-rw-r--r--src/luarocks/make.lua1
-rw-r--r--src/luarocks/make_manifest.lua1
-rw-r--r--src/luarocks/manif.lua1
-rw-r--r--src/luarocks/manif_core.lua1
-rw-r--r--src/luarocks/pack.lua1
-rw-r--r--src/luarocks/path.lua1
-rw-r--r--src/luarocks/persist.lua1
-rw-r--r--src/luarocks/purge.lua1
-rw-r--r--src/luarocks/refresh_cache.lua1
-rw-r--r--src/luarocks/remove.lua1
-rw-r--r--src/luarocks/repos.lua1
-rw-r--r--src/luarocks/search.lua1
-rw-r--r--src/luarocks/show.lua1
-rw-r--r--src/luarocks/tools/patch.lua1
-rw-r--r--src/luarocks/tools/tar.lua1
-rw-r--r--src/luarocks/type_check.lua1
-rw-r--r--src/luarocks/unpack.lua1
-rw-r--r--src/luarocks/util.lua1
-rw-r--r--src/luarocks/validate.lua1
-rw-r--r--src/luarocks/write_rockspec.lua1
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)
5local add = {} 4local add = {}
6package.loaded["luarocks.add"] = add 5package.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)
5local admin_remove = {} 4local admin_remove = {}
6package.loaded["luarocks.admin_remove"] = admin_remove 5package.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)
5local build = {} 4local build = {}
6package.loaded["luarocks.build"] = build 5package.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)
4local builtin = {} 3local builtin = {}
5 4
6local unpack = unpack or table.unpack 5local 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)
4local cmake = {} 3local cmake = {}
5 4
6local fs = require("luarocks.fs") 5local 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)
4local command = {} 3local command = {}
5 4
6local fs = require("luarocks.fs") 5local 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)
4local make = {} 3local make = {}
5 4
6local unpack = unpack or table.unpack 5local 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)
5local cache = {} 4local cache = {}
6package.loaded["luarocks.cache"] = cache 5package.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)
4local command_line = {} 3local command_line = {}
5 4
6local unpack = unpack or table.unpack 5local 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)
15local deps = {} 14local deps = {}
16package.loaded["luarocks.deps"] = deps 15package.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)
4local dir = {} 3local dir = {}
5package.loaded["luarocks.dir"] = dir 4package.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)
5local doc = {} 4local doc = {}
6package.loaded["luarocks.doc"] = doc 5package.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)
5local download = {} 4local download = {}
6package.loaded["luarocks.download"] = download 5package.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)
4local fetch = {} 3local fetch = {}
5package.loaded["luarocks.fetch"] = fetch 4package.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)
4local cvs = {} 3local cvs = {}
5 4
6local unpack = unpack or table.unpack 5local 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)
4local git = {} 3local git = {}
5 4
6local unpack = unpack or table.unpack 5local 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)
4local git_file = {} 3local git_file = {}
5 4
6local git = require("luarocks.fetch.git") 5local 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)
11local git_http = {} 10local git_http = {}
12 11
13local git = require("luarocks.fetch.git") 12local 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)
4local hg = {} 3local hg = {}
5 4
6local unpack = unpack or table.unpack 5local 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)
4local sscm = {} 3local sscm = {}
5 4
6local fs = require("luarocks.fs") 5local 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)
4local svn = {} 3local svn = {}
5 4
6local unpack = unpack or table.unpack 5local 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
8local pairs = pairs 8local pairs = pairs
9 9
10--module("luarocks.fs", package.seeall)
11local fs = {} 10local fs = {}
12package.loaded["luarocks.fs"] = fs 11package.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)
4local unix = {} 3local unix = {}
5 4
6local fs = require("luarocks.fs") 5local 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)
4local tools = {} 3local tools = {}
5 4
6local fs = require("luarocks.fs") 5local 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)
5local win32 = {} 4local win32 = {}
6 5
7local fs = require("luarocks.fs") 6local 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)
6local tools = {} 5local tools = {}
7 6
8local fs = require("luarocks.fs") 7local 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)
8local help = {} 7local help = {}
9 8
10local util = require("luarocks.util") 9local 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)
4local index = {} 3local index = {}
5package.loaded["luarocks.index"] = index 4package.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)
4local install = {} 3local install = {}
5package.loaded["luarocks.install"] = install 4package.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)
5local lint = {} 4local lint = {}
6package.loaded["luarocks.lint"] = lint 5package.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)
5local list = {} 4local list = {}
6package.loaded["luarocks.list"] = list 5package.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)
7local make = {} 6local make = {}
8package.loaded["luarocks.make"] = make 7package.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)
5local make_manifest = {} 4local make_manifest = {}
6package.loaded["luarocks.make_manifest"] = make_manifest 5package.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)
6local manif = {} 5local manif = {}
7package.loaded["luarocks.manif"] = manif 6package.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)
5local manif_core = {} 4local manif_core = {}
6package.loaded["luarocks.manif_core"] = manif_core 5package.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)
5local pack = {} 4local pack = {}
6package.loaded["luarocks.pack"] = pack 5package.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)
6local path = {} 5local path = {}
7 6
8local dir = require("luarocks.dir") 7local 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)
7local persist = {} 6local persist = {}
8package.loaded["luarocks.persist"] = persist 7package.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)
5local purge = {} 4local purge = {}
6package.loaded["luarocks.purge"] = purge 5package.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)
4local refresh_cache = {} 3local refresh_cache = {}
5package.loaded["luarocks.refresh_cache"] = refresh_cache 4package.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)
5local remove = {} 4local remove = {}
6package.loaded["luarocks.remove"] = remove 5package.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)
4local repos = {} 3local repos = {}
5package.loaded["luarocks.repos"] = repos 4package.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)
5local search = {} 4local search = {}
6package.loaded["luarocks.search"] = search 5package.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)
4local show = {} 3local show = {}
5package.loaded["luarocks.show"] = show 4package.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)
12local patch = {} 11local patch = {}
13 12
14local fs = require("luarocks.fs") 13local 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)
4local tar = {} 3local tar = {}
5 4
6local fs = require("luarocks.fs") 5local 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)
5local type_check = {} 4local type_check = {}
6package.loaded["luarocks.type_check"] = type_check 5package.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)
5local unpack = {} 4local unpack = {}
6package.loaded["luarocks.unpack"] = unpack 5package.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)
8local util = {} 7local util = {}
9 8
10local unpack = unpack or table.unpack 9local 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)
4local validate = {} 3local validate = {}
5package.loaded["luarocks.validate"] = validate 4package.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)
3local write_rockspec = {} 2local write_rockspec = {}
4package.loaded["luarocks.write_rockspec"] = write_rockspec 3package.loaded["luarocks.write_rockspec"] = write_rockspec
5 4