build: delete mkversion() (just print relname)
Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
ae44676727
commit
363ec7512c
10
build
10
build
|
@ -42,7 +42,7 @@ initcmd()
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
help) usage ${0} ;;
|
help) usage ${0} ;;
|
||||||
list) items "script" ;;
|
list) items "script" ;;
|
||||||
version) mkversion ;;
|
version) printf "%s\n" "$relname" ;;
|
||||||
release) shift 1; mkrelease $@ ;;
|
release) shift 1; mkrelease $@ ;;
|
||||||
*)
|
*)
|
||||||
script_path="script/${1}"
|
script_path="script/${1}"
|
||||||
|
@ -96,7 +96,7 @@ usage()
|
||||||
{
|
{
|
||||||
progname=${0}
|
progname=${0}
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
$(mkversion)
|
$relname
|
||||||
|
|
||||||
USAGE: ${progname} <OPTION>
|
USAGE: ${progname} <OPTION>
|
||||||
|
|
||||||
|
@ -199,12 +199,6 @@ fetch_trees()
|
||||||
x_ rm -Rf tmp .git
|
x_ rm -Rf tmp .git
|
||||||
}
|
}
|
||||||
|
|
||||||
mkversion()
|
|
||||||
{
|
|
||||||
printf "revision: %s %s\n" "$projectname" "$version"
|
|
||||||
printf "revision date: %s\n" "$(date -Rud @${versiondate})"
|
|
||||||
}
|
|
||||||
|
|
||||||
cbmk_exit()
|
cbmk_exit()
|
||||||
{
|
{
|
||||||
tmp_cleanup || err_ "cbmk_exit: can't rm tmpdir upon exit $1: $tmpdir"
|
tmp_cleanup || err_ "cbmk_exit: can't rm tmpdir upon exit $1: $tmpdir"
|
||||||
|
|
Loading…
Reference in New Issue