summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-15 04:30:42 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-15 04:30:42 +0100
commit885fcebd81052bfb39a8889988045584870aa760 (patch)
tree396cc3c26b2feb384843c940d0159222052b09ca /build
parentc6ba0a0e9b297606e89bd82655e48c40ac01becc (diff)
remove help commands (user should read docs)
i always say, code should never document itself. that's what documentation is for. the releases contain documentation under docs/ but the git repository does not; for that, use the website. (in practise, lbmk usually needs internet anyway) Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild31
1 files changed, 2 insertions, 29 deletions
diff --git a/build b/build
index 2d95a500..61836eb5 100755
--- a/build
+++ b/build
@@ -25,7 +25,7 @@ linkname="${linkpath##*/}"
main()
{
x_ id -u 1>/dev/null 2>/dev/null
- [ $# -lt 1 ] && $err "Too few arguments. Try: ${0} help"
+ [ $# -lt 1 ] && $err "Check $projectname documentation for help."
[ "$1" = "dependencies" ] && x_ install_packages $@ && lbmk_exit 0
@@ -47,8 +47,6 @@ initcmd()
[ "$(id -u)" != "0" ] || $err "this command as root is not permitted"
case "${1}" in
- help) usage ${0} ;;
- list) items "script" ;;
version) printf "%s\n" "$relname" ;;
release) shift 1; mkrelease $@ ;;
inject) shift 1; vendor_inject $@ ;;
@@ -98,35 +96,10 @@ git_init()
excmd()
{
- [ -f "${script_path}" ] || $err "Bad command. Run: ${linkpath} help"
+ [ -f "${script_path}" ] || $err "Bad command. Check $projectname docs."
shift 1; "$script_path" $@ || $err "excmd: ${script_path} ${@}"
}
-usage()
-{
- progname=${0}
- cat <<- EOF
- $relname
-
- USAGE: ${progname} <OPTION>
-
- possible values for 'OPTION':
- $(items "script")
-
- Special commands (consult $projectname documentation):
- ./vendor inject
- ./vendor download
- ./update release
- ./build dependencies distroname
- (replace distroname with a filename from config/dependencies/)
-
- To know what ${projectname} version you're on, type:
- ${progname} version
-
- Refer to ${projectname} documentation for more info.
- EOF
-}
-
mkrelease()
{
export LBMK_RELEASE="y"