]> git.e2factory.org Git - e2factory.git/commitdiff
Remove e2option.documentation
authorTobias Ulmer <tu@emlix.com>
Fri, 1 Feb 2013 17:49:34 +0000 (18:49 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:14 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 files changed:
global/e2-create-project.lua
global/e2-fetch-project.lua
global/e2-install-e2.lua
global/e2.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

index 8f9e7c0713f929e703f34bf1384801f405f2f314..99932e2e85bd971a07c28588dc3576b4706b2ace 100644 (file)
@@ -37,15 +37,6 @@ require("buildconfig")
 
 e2lib.init()
 
-local doc = [[
-usage: e2-create-project [<option> ...] [<server>:]<location>
-
-Create a new project and store it on <server> in <location>.
-<server> defaults to '%s'.
-]]
-e2option.documentation = string.format(doc,
-e2lib.globals.default_projects_server)
-
 local opts, arguments = e2option.parse(arg)
 local rc, e = e2lib.read_global_config()
 if not rc then
index 0fbf2a7d938b2059f34aa15a0ae7376d5936d6ba..4640b36c7eecfe1c7d41b24807e7f3a2fc28a7a2 100644 (file)
@@ -36,17 +36,8 @@ local err = require("err")
 require("buildconfig")
 
 e2lib.init()
-local e = err.new("fetching project failed")
-local doc = [[
-usage: e2-fetch-project [<option> ...] [<server>:]<location> [<destination>]
-
-fetch the project located in server:location to a directory given in
-<destination>.
-<server> defaults to '%s'.
-]]
-e2option.documentation = string.format(doc,
-e2lib.globals.default_projects_server)
 
+local e = err.new("fetching project failed")
 e2option.option("branch", "retrieve a specific project branch")
 e2option.option("tag", "retrieve a specific project tag")
 
index 77f622c77cfd4fafb2f774656ae3def0784167fe..cfd02abf9d0cd1712b36461aa1fc3ade090d4599 100644 (file)
@@ -36,12 +36,6 @@ require("buildconfig")
 
 e2lib.init()
 
-e2option.documentation = [[
-usage: e2-install-e2 [OPTION ...]
-
-Installs local tools in project environment.
-]]
-
 local opts, arguments = e2option.parse(arg)
 
 local root = e2lib.locate_project_root()
index 0fbca624d8d422072b452fa0531eef15149f267b..00dd08f36fba4bb2c8eeb1b4f716233b55d1b731 100644 (file)
@@ -35,15 +35,6 @@ require("e2util")
 
 e2lib.init()
 
-e2option.documentation = [[
-usage: e2 OPTION ...
-e2 COMMAND ARGUMENT ...
-
-"e2" is a wrapper script for invoking e2 commands. Any e2 commands called will
-be redirected either to the project-local or the global installation, depend‐
-ing on whether the invocation took place inside or outside a project tree.
-]]
-
 e2option.flag("prefix", "print installation prefix",
 function()
     print(buildconfig.PREFIX)
index d77f653453fab38f97384b3cbed9a2bfd80d905d..2d7e817e0003cea22e12e9b3ce40dd8885b003fb 100644 (file)
@@ -42,12 +42,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2-build [<option> | <result> ...]
-
-build results from repository or local sources.
-]]
-
 e2option.flag("all", "build all results (default unless for working copy)")
 policy.register_commandline_options()
 e2option.flag("branch-mode", "build selected results in branch mode")
index f3da646adf455ac7b59e14d2b7974156e306dcd0..e9718b35e398e3362e712f8ae4d37ecc34a89836 100644 (file)
@@ -39,25 +39,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2 cf <command> ...
-
-commands:
-newresult       <name>
-newsource       <name> <scm>
-editresult      <name>
-editbuildscript <name>
-editsource      <name>
-
-Commands starting with 'edit' can be abbreviated by using e...
-Commands starting with 'new' can be abbreviated by using n...
-Commands can be shortened as long as they remain unambiguous
-
-e.g.: eb <name> is equivalent to editbuildscript <name>
-
-modify and create configuration files
-]]
-
 local opts, arguments = e2option.parse(arg)
 
 -- initialize some basics in the info structure without actually loading
index 8e2f25ae521dda9d3833ef9738ceafdefa893cef..f9669ff6bd9e088e8d1cb3fb14d59414f00484cd 100644 (file)
@@ -38,12 +38,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2-dlist [<option> | <result> ...]
-
-for the given result show those results which it depends on
-]]
-
 e2option.flag("recursive", "show indirect dependencies, too")
 local opts, arguments = e2option.parse(arg)
 
index 7dfffc31d2fe99581efdfd9800f371407b75ba29..73ed7b93c076f52194674828bc9cb78f0bb21cb3 100644 (file)
@@ -38,12 +38,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2-dsort
-
-lists all results sorted by dependency
-]]
-
 e2option.parse(arg)
 
 info, re = e2tool.collect_project_info(info)
index 8e9f286d7740bb0d87cead0e440979180149b52d..f589a1f8dd6459e9d9b30a02e2a69bb620bd7589 100644 (file)
@@ -42,26 +42,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2-fetch-sources <source> ...
-
-fetch all sources for a project, provided they are not fetched yet.
-up-to-dateness is not checked for sources which are already fetched.
-]]
-
--- --all (--scm)
--- --source    select sources by source names
--- --result    select sources by result names
--- --chroot    select chroot files
--- --files     select files sources
--- --scm       select sources using scm systems
---  --git
---  --cvs
---  --svn
---
--- --fetch, --cache  fetch selected sources
--- --update          update selected sources
-
 local e = err.new()
 
 e2option.flag("all", "select all sources, even files sources")
index 10cb4af59dc907932dcc5e6f53caa13ac4dc8f2b..05c498d9c1b875b7f9bcf485751535804682a993 100644 (file)
@@ -43,12 +43,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2-ls-project [<result> ...]
-
-show project information
-]]
-
 policy.register_commandline_options()
 e2option.flag("dot", "generate dot(1) graph")
 e2option.flag("dot-sources", "generate dot(1) graph with sources included")
index f99769fa6907afdee658243f10af4c08093ed9d3..e769d9492316ecab441eb2eded222c0b92151708 100644 (file)
@@ -47,24 +47,6 @@ if not info then
     e2lib.abort(re)
 end
 
-e2option.documentation = [[
-usage: e2-new-source --git [--server <server>] <name>
-       e2-new-source --files [--no-checksum]
-               [<server>:]<location> <source_file_url> [<checksum_file_url>]
-
- Put new source onto an existing server.
-
- --git
- Put a repository named <name> into the projects' 'git/' directory on
- the server, i.e. <server>/<project>/git/<name>.git
- The server defaults to the default repository server, and the <project>
- part is the project location relative to the projects server.
-
- --files
- Put a new file onto the server.
- Server defaults to 'upstream'
-]]
-
 e2option.flag("git", "create a git repository")
 e2option.flag("files", "create a new file on a files server")
 e2option.option("server", "specify server")
index 0635677c0f5980a3078f3bca1ce172815680f23b..34b61eccade2fb270eb93857f8262fd209818721 100644 (file)
@@ -46,11 +46,6 @@ end
 local e = err.new("entering playground failed")
 local rc, re
 
-e2option.documentation = [[
-usage: e2-playground [<options> ...] <result>
-
-Jump into chroot(1) environment for specified result, if it exists.
-]]
 e2option.option("command","execute command in chroot")
 e2option.flag("runinit","run init files automatically")
 e2option.flag("showpath", "prints the path of the build directory inside the chroot to stdout" )