mk: abuse an absurd number of sh macros

just the right amount of absurd

this is why i don't need to use python

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-15 14:43:23 +01:00
parent a65d804f1e
commit 5043b6dc97
2 changed files with 81 additions and 50 deletions
+4 -4
View File
@@ -9,7 +9,7 @@ eval "`newvar url bkup_url depend loc subcurl subcurl_bkup subgit subgit_bkup \
tmpgit="$xbtmp/gitclone"
tmpgitcache="$xbtmp/tmpgit"
fetch_targets()
multi_tree_fetch()
{
[ -d "src/$project/$tree" ] && \
return 0
@@ -18,17 +18,17 @@ fetch_targets()
"src/$project/$tree" "submod"
}
fetch_project()
single_tree_fetch()
{
xgcctree=""
. "config/git/$project/pkg.cfg" || \
err "Can't read config 'config/git/$project/pkg.cfg'" \
"fetch_project" "@"
"single_tree_fetch" "@"
if [ -z "$url" ] || [ -z "$bkup_url" ]; then
err "url/bkup_url not both set 'config/git/$project/pkg.cfg'" \
"fetch_project" "$@"
"single_tree_fetch" "$@"
fi
[ -n "$xgcctree" ] && \