diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-30 21:31:01 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-30 21:33:30 +0100 |
commit | 2b49714a6ae2920a4de4131768bffc2d1d40a666 (patch) | |
tree | 5b3bdd0562f22ed5f76b07ff8259870feb3376b7 /build | |
parent | b7f12ade03dc53788ed21189fd355582eb9490bb (diff) |
trees: handle all projects if project undefined
e.g. ./update trees -f
if passed, this command would download every tree
similarly, the -c option can be used in this way. this
solves a longstanding issue: on the current, much more
efficient design, it was not possible to systematically
clean every project.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-x | build | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -92,7 +92,8 @@ build_release() { ( cd "$srcdir" || $err "$vdir: !cd \"$srcdir\"" - fetch_trees + ./update trees -f + rmgit . x_ mv src/docs docs ) || $err "can't create release files" @@ -119,15 +120,6 @@ build_release() rm -Rf "$srcdir" || $err "!rm -Rf $srcdir" } -fetch_trees() -{ - for x in $(ls -1 config/git); do - ./update trees -f "$x" || $err "$vdir: fetch $x" - singletree "$x" || x_ rm -Rf "src/$x/$x" - done - rmgit . -} - fail() { tmp_cleanup || printf "WARNING: can't rm tmpfiles: %s\n" "$TMPDIR" 1>&2 |