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>3050wip
parent
f5ba40200f
commit
38b65af5b5
8
build
8
build
|
@ -22,14 +22,15 @@ err="fail"
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
[ $# -lt 1 ] && $err "bad command"
|
[ $# -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" \
|
for g in "which git" "git config --global user.name" \
|
||||||
"git config --global user.email" "git_init"; do
|
"git config --global user.email" "git_init"; do
|
||||||
eval "$g 1>/dev/null 2>/dev/null || git_err \"$g\""
|
eval "$g 1>/dev/null 2>/dev/null || git_err \"$g\""
|
||||||
done
|
done
|
||||||
|
|
||||||
case "${1}" in
|
case "${spath#script/}" in
|
||||||
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
|
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
|
||||||
release) shift 1; mkrelease $@ ;;
|
release) shift 1; mkrelease $@ ;;
|
||||||
inject) shift 1; vendor_inject $@ ;;
|
inject) shift 1; vendor_inject $@ ;;
|
||||||
|
@ -41,8 +42,9 @@ main()
|
||||||
fi; shift 1
|
fi; shift 1
|
||||||
x_ ./update trees -b coreboot $@ ;;
|
x_ ./update trees -b coreboot $@ ;;
|
||||||
*)
|
*)
|
||||||
|
echo "'$@'"
|
||||||
[ -f "$spath" ] || $err "bad command"
|
[ -f "$spath" ] || $err "bad command"
|
||||||
shift 1; "$spath" $@ || $err "excmd: $spath $@" ;;
|
$shcmd; "$spath" $@ || $err "excmd: $spath $@" ;;
|
||||||
esac
|
esac
|
||||||
set -u -e # some commands disable them. turn them on!
|
set -u -e # some commands disable them. turn them on!
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue