]> git.e2factory.org Git - e2factory.git/commitdiff
Add module descriptions and fix small ldoc errors
authorTobias Ulmer <tu@emlix.com>
Wed, 12 Dec 2012 01:12:35 +0000 (02:12 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:12 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
34 files changed:
generic/cache.lua
generic/e2lib.lua
generic/e2option.lua
generic/err.lua
generic/generic_git.lua
generic/hash.lua
generic/lock.lua
generic/luafile.lua
generic/plugin.lua
generic/strict.lua
generic/tools.lua
generic/transport.lua
generic/url.lua
global/e2-create-project.lua
global/e2-fetch-project.lua
global/e2-install-e2.lua
global/e2.lua
local/cvs.lua
local/e2-build.lua
local/e2-cf.lua
local/e2-dlist.lua
local/e2-dsort.lua
local/e2-fetch-sources.lua
local/e2-ls-project.lua
local/e2-new-source.lua
local/e2-playground.lua
local/e2build.lua
local/e2tool.lua
local/environment.lua
local/files.lua
local/git.lua
local/policy.lua
local/scm.lua
local/svn.lua

index 42603472fa58633ea21884154e626fdb83f57e64..da1cc6df7f78b863c733293387e4e866581cfbd6 100644 (file)
@@ -1,3 +1,6 @@
+--- Cache
+-- @module generic.cache
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -381,6 +384,7 @@ end
 -- @param c the cache data structure
 -- @param server the server to fetch the file from
 -- @param location the location on the server
+-- @param flags
 -- @return bool
 -- @return an error object on failure
 function cache.writeback(c, server, location, flags)
@@ -412,6 +416,7 @@ end
 -- @param c the cache data structure
 -- @param server the server to fetch the file from
 -- @param location the location on the server
+-- @param flags
 -- @return bool
 -- @return an error object on failure
 function cache.cache_file(c, server, location, flags)
@@ -452,6 +457,7 @@ end
 -- @param c the cache data structure
 -- @param server the server where the file is located
 -- @param location the location on the server
+-- @param flags unused parameter
 -- @return string the path to the cached file, nil on error
 -- @return an error object on failure
 function cache.file_path(c, server, location, flags)
index 1db0ec3a84562b99560bb40a2a2b22bb01813abe..4d80617ec57ee075ac768c050b5c10b47b3ea1ed 100644 (file)
@@ -1,3 +1,6 @@
+--- Utility and Helper Library
+-- @module generic.e2lib
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -526,8 +529,6 @@ end
 -- is true
 -- @param level number: loglevel
 -- @param msg string: log message
--- @param ... strings: arguments required for the format string
--- @return nil
 function e2lib.log(level, msg)
     if level < 1 or level > 4 then
         bomb("invalid log level")
@@ -560,7 +561,6 @@ function e2lib.log(level, msg)
         end
         io.stderr:write(msg .. "\n")
     end
-    return nil
 end
 
 function e2lib.rotate_log(file)
@@ -709,7 +709,7 @@ function e2lib.tartype(path)
 end
 
 --- translate filename suffixes to valid tartypes for e2-su-2.2
--- @filename string: filename
+-- @param filename string: filename
 -- @return string: tartype, or nil on failure
 -- @return an error object on failure
 function e2lib.tartype_by_suffix(filename)
@@ -898,7 +898,6 @@ end
 
 --- read the local extension configuration
 -- This function must run while being located in the projects root directory
--- @param root string: path to project
 -- @return the extension configuration table
 -- @return an error object on failure
 function e2lib.read_extension_config()
@@ -1430,7 +1429,7 @@ end
 --- call the touch tool with flags and filename
 -- @param file string: the file parameter
 -- @param flags string: flags to pass to touch (optional)
--- @returns bool
+-- @return bool
 function e2lib.touch(file, flags)
     if not flags then
         flags = ""
@@ -1569,7 +1568,7 @@ function e2lib.svn(argv)
 end
 
 --- call the ln command
--- @param destination string: destination name
+-- @param dst string: destination name
 -- @param link string: link name
 -- @return bool
 -- @return the last line of captured output
@@ -1875,7 +1874,7 @@ end
 
 --- parse a server:location string, taking a default server into account
 -- @param arg string: the string to parse
--- @param dafault server string: the default server name
+-- @param default_server string: the default server name
 -- @return a table with fields server and location, nil on error
 -- @return nil, an error string on error
 function e2lib.parse_server_location(arg, default_server)
index 6a054688028a0eb844ddd41e7c179963448f8b7d..32cc853b8b55af32b906d11db963f1952774770a 100644 (file)
@@ -1,3 +1,6 @@
+--- Option Parser
+-- @module generic.e2option
+
 --[[
    e2factory, the emlix embedded build system
 
index 4fdc0f93dadbc6dd2bd8c08108ecfabbbf861dd3..4bb0b2d5937b95b4f460e07aef65cc140d2d424b 100644 (file)
@@ -1,3 +1,6 @@
+--- Error Object
+-- @module generic.err
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -86,6 +89,7 @@ end
 
 --- get the error counter
 -- @param e the error object
+-- @param n unused
 -- @return number: the error counter
 function err.getcount(e, n)
     return e.count
index 88a15021ea82c14f7d3d95d777c23357028ce4ce..b916d66e2f5866d7642b83884bbbf74cba26992d 100644 (file)
@@ -1,3 +1,6 @@
+--- Git
+-- @module generic.generic_git
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -39,6 +42,7 @@ local strict = require("strict")
 --- clone a git repository
 -- @param surl url to the server
 -- @param location location relative to the server url
+-- @param destdir
 -- @param skip_checkout bool: pass -n to git clone?
 -- @return true on success, false on error
 -- @return nil, an error object on failure
@@ -289,7 +293,7 @@ function generic_git.git_url1(u)
 end
 
 --- clone a git repository by server and location
--- @param cache
+-- @param c
 -- @param server
 -- @param location
 -- @param destdir string: destination directory
@@ -526,8 +530,8 @@ function generic_git.verify_clean_repository(gitwc)
 end
 
 --- verify that HEAD matches the given tag
--- @param gitdir string: gitdir (optional, default: .git)
--- @param tag string: tag name
+-- @param gitwc string: gitdir (optional, default: .git)
+-- @param verify_tag string: tag name
 -- @return bool, or nil on error
 -- @return an error object on failure
 function generic_git.verify_head_match_tag(gitwc, verify_tag)
@@ -579,7 +583,7 @@ end
 -- @param llocation string: working copy location on local server
 -- @param rserver string: remote server
 -- @param rlocation string: repository location on remote server
--- @param flags: table of flags
+-- @param flags table of flags
 -- @return bool
 -- @return nil, or an error string on error
 function generic_git.new_repository(c, lserver, llocation, rserver, rlocation, flags)
index 30f2908ece2a8d73de10eab42e9fdb7aad383452..530b2fb91be033ea8863ceb51565c59d05766307 100644 (file)
@@ -1,3 +1,6 @@
+--- Hash
+-- @module generic.hash
+
 --[[
    e2factory, the emlix embedded build system
 
index c1f299b90a1c1c91108197ba029967c69cd9d571..290b748235262acfc844d0c4261b8440982d1fd7 100644 (file)
@@ -1,3 +1,11 @@
+--- Locking module.
+--
+-- This module maintains lock directories within a lock context.
+-- Remaining lock directories can be removed by calling the cleanup
+-- method.
+--
+-- @module generic.lock
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -26,9 +34,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ]]
 
---- This module maintains lock directories within a lock context.
--- Remaining lock directories can be removed by calling the cleanup
--- method.
 local lock = {}
 local err = require("err")
 local e2lib = require("e2lib")
index 592cdd327f2835a73d74bc8a44f1f4da0c772e89..b79c67847c80c47312f5772a6e50f29b7747fd05 100644 (file)
@@ -1,3 +1,6 @@
+--- File handling.
+-- @module generic.luafile
+
 --[[
    e2factory, the emlix embedded build system
 
index 396dcd7baff1103ee02310594de0a70116d9dc6d..7fac4d57c06232d5a0c8b967baf97bbf7caf5fee 100644 (file)
@@ -1,3 +1,6 @@
+--- Plugin Loader.
+-- @module generic.plugin
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -76,7 +79,7 @@ local plugins = {}
 
 --- load a plugin
 -- @param dir string: plugin directory
--- @param plugin_file string: filename
+-- @param p string: plugin filename
 -- @param ctx table: plugin context
 -- @return bool
 -- @return an error object on failure
index 2d8be78af4727b9a0c8a709a21139211070b1d1e..60bc5b5b33405025a342d826b1d14f378db8848d 100644 (file)
@@ -1,3 +1,6 @@
+--- Strict table handling.
+-- @module generic.strict
+
 --[[
    e2factory, the emlix embedded build system
 
index 25a7b235d26fa20e05311c24c8bc533b4246d35f..5102f4aa46aff56a1765ad158ff5715e063ef479 100644 (file)
@@ -1,3 +1,6 @@
+--- External Tools Support.
+-- @module generic.tools
+
 --[[
    e2factory, the emlix embedded build system
 
index bd238d6616780481de1f404f3d80a53ccfeb4340..baad4173640b0cfec55af3a1e9e7278858d99777 100644 (file)
@@ -1,3 +1,6 @@
+--- Transport Backend
+-- @module generic.transport
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -83,7 +86,7 @@ end
 -- @param opts table: options vector to pass to rsync
 -- @param user string: optional username or nil
 -- @param server string: the server part of the directory to create
--- @param directory string: the directory to create on the server
+-- @param dir string: the directory to create on the server
 -- @return bool
 -- @return an error object on failure
 local function rsync_ssh_mkdir(opts, user, server, dir)
index 5d65240af97bcf68e1e8966bf39a77e06988a0ee..743dfcb8bbc90ed24fac533b6c935fdf6d666a09 100644 (file)
@@ -1,3 +1,6 @@
+--- URL Parser.
+-- @module generic.url
+
 --[[
    e2factory, the emlix embedded build system
 
index 5d781182638a41169ad0e4d253c3382d9b3d4604..8f9e7c0713f929e703f34bf1384801f405f2f314 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-create-project command
+-- @module global.e2-create-project
+
 --[[
    e2factory, the emlix embedded build system
 
index 7d502cbd6d246b809f952cec792b47b9b46769c0..0fbf2a7d938b2059f34aa15a0ae7376d5936d6ba 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-fetch-project command
+-- @module global.e2-fetch-project
+
 --[[
    e2factory, the emlix embedded build system
 
index 0720c06b517c1cdfa16e21e1d9861022ef6eaca5..f9d041a155d66437993c680359c1921b3a353a68 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-install-e2 command
+-- @module global.e2-install-e2
+
 --[[
    e2factory, the emlix embedded build system
 
index 549b01f3053a7c146031e1c853000356c5591c6c..9cd57e023c80c2f9c7443b6a44e5008278ae00d5 100644 (file)
@@ -1,3 +1,6 @@
+--- e2 command
+-- @module global.e2
+
 --[[
    e2factory, the emlix embedded build system
 
index bb1cbb402c82cc7335b768b73344decf16d18ad9..7d1fe61464d43cbc944ea3fd69a734ecb5ceecf2 100644 (file)
@@ -1,3 +1,6 @@
+--- CVS Plugin
+-- @module local.cvs
+
 --[[
    e2factory, the emlix embedded build system
 
index 840a621bf868f064a2ed939203a61ae17a751593..29c8c67b8daa5cf807d99bb98e00317b804829d6 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-build command
+-- @module local.e2-build
+
 --[[
    e2factory, the emlix embedded build system
 
index 58f68ee6651b8d329ad9c0b1adc7d39ba2f05edd..f3da646adf455ac7b59e14d2b7974156e306dcd0 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-cf command
+-- @module local.e2-cf
+
 --[[
    e2factory, the emlix embedded build system
 
index c5da5f1326caf63ae9c18b2956e3bc6699edd8bc..8e2f25ae521dda9d3833ef9738ceafdefa893cef 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-dlist command
+-- @module local.e2-dlist
+
 --[[
    e2factory, the emlix embedded build system
 
index 9de6838d73c569c4bc8344c88331bbbf0a9651b1..7dfffc31d2fe99581efdfd9800f371407b75ba29 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-dlist command
+-- @module local.e2-dlist
+
 --[[
    e2factory, the emlix embedded build system
 
index 962d5ee3dbb734c80203d5e45857e86a00b681ff..8e9f286d7740bb0d87cead0e440979180149b52d 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-fetch-source command
+-- @module local.e2-fetch-source
+
 --[[
    e2factory, the emlix embedded build system
 
index 69a099e07a477ddb4fee75b46cb7b7b6a0918c28..10cb4af59dc907932dcc5e6f53caa13ac4dc8f2b 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-ls-project command
+-- @module local.e2-ls-project
+
 --[[
    e2factory, the emlix embedded build system
 
index 89579c9046e4ac80b39069020f4131cd84cc07c5..b0f63d45217a57e05a4f19153826e2783a89d98f 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-new-source command
+-- @module local.e2-new-source
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -117,7 +120,7 @@ end
 
 --- generate a sha1 checksum file
 -- @param source_file string: source file name
--- @param checksum_file: checksum file name
+-- @param checksum_file checksum file name
 -- @return bool
 -- @return nil, an error string on error
 local function write_checksum_file_sha1(source_file, checksum_file)
index 1ed062e517b7d51fd6b8cae3c4187b2f2cbc0ac5..0635677c0f5980a3078f3bca1ce172815680f23b 100644 (file)
@@ -1,3 +1,6 @@
+--- e2-playground command
+-- @module local.e2-playground
+
 --[[
    e2factory, the emlix embedded build system
 
index 2f03b017f35fb03915a5b43e12bb0044cd424028..b98be4dadedff14e4e78ab714bbf34a79dc84032 100644 (file)
@@ -1,3 +1,6 @@
+--- Core build logic
+-- @module local.e2build
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -935,6 +938,7 @@ end
 --- build a result
 -- @param info
 -- @param result string: result name
+-- @param return_flags
 -- @return bool
 -- @return an error object on failure
 local function build_result(info, result, return_flags)
@@ -1013,7 +1017,9 @@ end
 -- sources being the result collecting the project:
 -- the results sources and iso won't be included, as that would lead to
 -- an impossibility to calculate buildids (infinite recursion)
--- @param c table: build context
+-- @param info info table
+-- @param r
+-- @param return_flags
 -- @return bool
 -- @return an error object on failure
 local function collect_project(info, r, return_flags)
index 10a3ac03f7c56af3e8e84dfd0cbbf74c0e95d2aa..e34ad00674213b9f41c7f7de5b20c599116827e0 100644 (file)
@@ -1,3 +1,6 @@
+--- Core data structure manipulation
+-- @module local.e2tool
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -296,8 +299,9 @@ end
 -- @field filename string: config file name
 
 --- load config file and return a list of config item tables
+-- @param info info table
 -- @param path string: file to load
--- @param type list of strings: allowed config types
+-- @param types list of strings: allowed config types
 -- @return list of config items
 -- @return an error object on failure
 local function load_user_config2(info, path, types)
@@ -1965,6 +1969,7 @@ end
 
 --- calculate a representation for file content. The name and location
 -- attributes are not included.
+-- @param info info table
 -- @param file table: file table from configuration
 -- @return fileid string: hash value, or nil
 -- @return an error object on failure
@@ -2030,7 +2035,6 @@ end
 -- XXX this function always succeeds or aborts
 -- @param info
 -- @param resultname
--- @param mode
 -- @return the buildid
 function e2tool.buildid(info, resultname)
     e2lib.log(4, string.format("get buildid for %s", resultname))
@@ -2330,7 +2334,7 @@ local function check_workingcopies(info)
 end
 
 --- parse build numbers from a string and store to the build number table
--- @param info: the info table
+-- @param info the info table
 -- @param s string: the string to parse
 -- @param build_numbers table: build number table (optional)
 -- @return bool
@@ -2366,7 +2370,7 @@ end
 
 --- serialize the build number table suitable for storage or network
 -- transport
--- @param info: the info table
+-- @param info info table
 -- @param build_numbers table: build number table (optional)
 -- @return s string: serialized build numbers, or nil
 -- @return nil, an error object on error
index b234d1cbc8be4baf6f1d5abeeba79ae6e157f168..f62d7a2fdfaf3ccf7e82b2076877eb6dc99c1ba3 100644 (file)
@@ -1,3 +1,6 @@
+--- Environment Manipulation
+-- @module local.environment
+
 --[[
    e2factory, the emlix embedded build system
 
index f5a979aeb68c82cda75b41b8527c38f695adaed4..f0182a5cf8cad3b0590bcc342584ee5efa2c209e 100644 (file)
@@ -1,3 +1,6 @@
+--- Files Plugin
+-- @module local.files
+
 --[[
    e2factory, the emlix embedded build system
 
index cb658d9010daef8968c0be09c406214cdbc84abd..ac04fa9b983916b894c871c7429408f97b0b6c05 100644 (file)
@@ -1,3 +1,6 @@
+--- Git Plugin
+-- @module local.git
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -275,6 +278,8 @@ end
 --- prepare a git source
 -- @param info the info structure
 -- @param sourcename string
+-- @param sourceset
+-- @param buildpath
 -- @return bool
 -- @return nil on success, an error string on error
 function git.prepare_source(info, sourcename, sourceset, buildpath)
@@ -442,6 +447,7 @@ end
 --- calculate an id for a source
 -- @param info
 -- @param sourcename
+-- @param sourceset
 -- @return string: the sourceid, or nil
 -- @return an error string
 function git.sourceid(info, sourcename, sourceset)
index f9b3d25befc80442430a96fa4901796da8580147..a1966e4a38a9a130d0506f233251fcf8831f6b4d 100644 (file)
@@ -1,3 +1,6 @@
+--- Policy
+-- @module local.policy
+
 --[[
    e2factory, the emlix embedded build system
 
index caba4cf46ec0a51de0d1558f57269f1aabbe68ab..b5ba458757a8307730952b8c62b95cbd04dec1e4 100644 (file)
@@ -1,3 +1,6 @@
+--- SCM Interface
+-- @module local.scm
+
 --[[
    e2factory, the emlix embedded build system
 
index 44cb1b6e61f942d848375bd1d892ad18bbed9e3b..d207108df7848c71cb45f352c18a6226cd41b944 100644 (file)
@@ -1,3 +1,6 @@
+--- Subversion Plugin
+-- @module local.svn
+
 --[[
    e2factory, the emlix embedded build system
 
@@ -212,6 +215,7 @@ end
 --- calculate an id for a source
 -- @param info
 -- @param sourcename
+-- @param source_set
 function svn.sourceid(info, sourcename, source_set)
     local src = info.sources[sourcename]
     local rc, e