diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-15 14:43:23 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-15 17:08:05 +0100 |
| commit | 5043b6dc97dbc0ddd819e6ced950565ac7b78ab7 (patch) | |
| tree | 2ba9693e73f7d206cea272cfefcbcb67c4754719 /include | |
| parent | a65d804f1e7400b09b4b5358d218658adc2937e6 (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/env/get.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/env/get.sh b/include/env/get.sh index 2a9d182b..f576fc99 100644 --- a/include/env/get.sh +++ b/include/env/get.sh @@ -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" ] && \ |
