build: delete mkversion() (just print relname)

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-15 02:49:30 +01:00 committed by Leah Rowe
parent ae44676727
commit 363ec7512c
1 changed files with 2 additions and 8 deletions

10
build
View File

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