summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-17 13:57:14 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-17 13:57:14 +0100
commit54aa5b7d329526152c915d5a8603107248cf0a09 (patch)
tree47ef11ea8028978527a47e3f302b26f53e624b48
parent96f786b962e2a933ddf69cd74f8b2635f7b142b1 (diff)
tree.sh: unify -f/-F in case/switch handling
they're the same commands, but -F does forcepull Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/tree.sh21
1 files changed, 9 insertions, 12 deletions
diff --git a/include/tree.sh b/include/tree.sh
index a395caf9..166a3d86 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -8,10 +8,10 @@
flag=""
# macros, overridden depending on the flag
-if_dry_build=":"
-if_not_dry_build=""
if_do_make=""
+if_dry_build=":"
if_not_do_make=":"
+if_not_dry_build=""
autoconfargs=""
autogenargs=""
@@ -76,28 +76,25 @@ trees()
# where only a subset of build tasks are done,
# and $if_not_dry_build is prefixed to skipped commands
- if_not_dry_build=":"
if_dry_build=""
+ if_not_dry_build=":"
;;
-b) : ;;
-u) mode="oldconfig" ;;
-m) mode="menuconfig" ;;
-c) mode="distclean" ;;
-x) mode="crossgcc-clean" ;;
- -f) # download source code for a project
+ -f|-F) # download source code for a project
# macros. colon means false.
if_do_make=":"
- if_not_do_make=""
- if_not_dry_build=":"
if_dry_build=""
- ;;
- -F) # same as -F, but don't skip git fetch/pull on cache
- # macros. colon means false
- if_do_make=":"
if_not_do_make=""
if_not_dry_build=":"
- if_dry_build=""
- forcepull="y"
+ if [ "$flag" = "-F" ]; then
+ # don't skip git fetch/pull on cached src
+
+ forcepull="y"
+ fi
;;
-s) mode="savedefconfig" ;;
-l) mode="olddefconfig" ;;