build: delete mkversion() (just print relname)

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-05-15 02:49:30 +01:00
parent a40a61292d
commit 39df62301d
1 changed files with 2 additions and 8 deletions

10
build
View File

@ -44,7 +44,7 @@ initcmd()
case "${1}" in
help) usage ${0} ;;
list) items "script" ;;
version) mkversion ;;
version) printf "%s\n" "$relname" ;;
release) shift 1; mkrelease $@ ;;
inject) shift 1; vendor_inject $@ ;;
download) shift 1; vendor_download $@ ;;
@ -101,7 +101,7 @@ usage()
{
progname=${0}
cat <<- EOF
$(mkversion)
$relname
USAGE: ${progname} <OPTION>
@ -206,12 +206,6 @@ fetch_trees()
x_ rm -Rf tmp .git
}
mkversion()
{
printf "revision: %s %s\n" "$projectname" "$version"
printf "revision date: %s\n" "$(date -Rud @${versiondate})"
}
lbmk_exit()
{
tmp_cleanup || err_ "lbmk_exit: can't rm tmpdir upon exit $1: $tmpdir"