summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-10 12:29:39 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-10 12:34:35 +0100
commitafdf8c7733f81ca196c70a40566ec75111c31c33 (patch)
treea4671c68d72cbf9ecc58b3f08d89aa8c8f2c7d21 /mk
parent123639e3db0757fb3370516f7eaf50cbfae4d026 (diff)
Revert "xbmk: general code cleanup"
This reverts commit 1b65e8914c4ad1e140b573fa6bc8feead14542ad. NOTE: cleanup of xbmk_git_init was retained this "cleanup" actually made the code harder to read. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'mk')
-rwxr-xr-xmk12
1 files changed, 1 insertions, 11 deletions
diff --git a/mk b/mk
index 78b3e7f3..78d2a603 100755
--- a/mk
+++ b/mk
@@ -10,15 +10,12 @@ set -u -e
ispwd="true"
if [ "$0" != "./mk" ]; then
-
ispwd="false"
fi
if [ "$ispwd" = "true" ] && [ -L "mk" ]; then
-
ispwd="false"
fi
if [ "$ispwd" = "false" ]; then
-
printf "You must run this in the proper work directory.\n" 1>&2
exit 1
fi
@@ -37,29 +34,22 @@ main()
{
cmd=""
if [ $# -gt 0 ]; then
-
cmd="$1"
+
shift 1
fi
case "$cmd" in
-
version)
-
printf "%s\nWebsite: %s\n" "$relname" "$projectsite"
;;
-
release|download|inject|prep_mr_import)
-
$cmd "$@"
;;
-
-*)
-
return 0
;;
*)
-
err "bad command" main "$@"
;;
esac