support ./mk in place of ./update trees

it's a shortcut command. a new symlink.

./update trees -b flashprog

can instead do:

./mk -b flashprog

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2024-07-22 23:35:26 +01:00 committed by Leah Rowe
parent 3fd2769bf6
commit acac32f065
2 changed files with 6 additions and 3 deletions

8
build
View File

@ -20,14 +20,15 @@ err="fail"
main()
{
[ $# -lt 1 ] && $err "bad command"
spath="script/$1"
spath="script/$1"; shcmd="shift 1"
[ "${1#-*}" != "$1" ] && spath="script/trees" && shcmd=":"
for g in "which git" "git config --global user.name" \
"git config --global user.email" "git_init"; do
eval "$g 1>/dev/null 2>/dev/null || git_err \"$g\""
done
case "${1}" in
case "${spath#script/}" in
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
release) shift 1; mkrelease $@ ;;
roms)
@ -37,8 +38,9 @@ main()
fi; shift 1
x_ ./update trees -b coreboot $@ ;;
*)
echo "'$@'"
[ -f "$spath" ] || $err "bad command"
shift 1; "$spath" $@ || $err "excmd: $spath $@" ;;
$shcmd; "$spath" $@ || $err "excmd: $spath $@" ;;
esac
}

1
mk Symbolic link
View File

@ -0,0 +1 @@
build