From 64f933747021cb783230b9aef367921884ece555 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 8 Nov 2023 06:17:40 +0000 Subject: lbmk: support showing the revision in help text Signed-off-by: Leah Rowe --- build | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/build b/build index 0d9fcf46..6e61c763 100755 --- a/build +++ b/build @@ -65,8 +65,15 @@ initialise_command() check_project case "${1}" in - help) usage ${0} && lbmk_exit 0 ;; - list) items "${buildpath}" && lbmk_exit 0 ;; + help) + usage ${0} + lbmk_exit 0 ;; + list) + items "${buildpath}" + lbmk_exit 0 ;; + version) + mkversion + lbmk_exit 0 ;; esac option="${1}" } @@ -116,15 +123,26 @@ usage() { progname=${0} cat <<- EOF + $(mkversion) + USAGE: ${progname}