mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 10:12:04 +02:00
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>
This commit is contained in:
+10
-13
@@ -8,10 +8,10 @@
|
|||||||
flag=""
|
flag=""
|
||||||
|
|
||||||
# macros, overridden depending on the flag
|
# macros, overridden depending on the flag
|
||||||
if_dry_build=":"
|
|
||||||
if_not_dry_build=""
|
|
||||||
if_do_make=""
|
if_do_make=""
|
||||||
|
if_dry_build=":"
|
||||||
if_not_do_make=":"
|
if_not_do_make=":"
|
||||||
|
if_not_dry_build=""
|
||||||
|
|
||||||
autoconfargs=""
|
autoconfargs=""
|
||||||
autogenargs=""
|
autogenargs=""
|
||||||
@@ -76,28 +76,25 @@ trees()
|
|||||||
# where only a subset of build tasks are done,
|
# where only a subset of build tasks are done,
|
||||||
# and $if_not_dry_build is prefixed to skipped commands
|
# and $if_not_dry_build is prefixed to skipped commands
|
||||||
|
|
||||||
if_not_dry_build=":"
|
|
||||||
if_dry_build=""
|
if_dry_build=""
|
||||||
|
if_not_dry_build=":"
|
||||||
;;
|
;;
|
||||||
-b) : ;;
|
-b) : ;;
|
||||||
-u) mode="oldconfig" ;;
|
-u) mode="oldconfig" ;;
|
||||||
-m) mode="menuconfig" ;;
|
-m) mode="menuconfig" ;;
|
||||||
-c) mode="distclean" ;;
|
-c) mode="distclean" ;;
|
||||||
-x) mode="crossgcc-clean" ;;
|
-x) mode="crossgcc-clean" ;;
|
||||||
-f) # download source code for a project
|
-f|-F) # download source code for a project
|
||||||
# macros. colon means false.
|
# macros. colon means false.
|
||||||
if_do_make=":"
|
if_do_make=":"
|
||||||
|
if_dry_build=""
|
||||||
if_not_do_make=""
|
if_not_do_make=""
|
||||||
if_not_dry_build=":"
|
if_not_dry_build=":"
|
||||||
if_dry_build=""
|
if [ "$flag" = "-F" ]; then
|
||||||
;;
|
# don't skip git fetch/pull on cached src
|
||||||
-F) # same as -F, but don't skip git fetch/pull on cache
|
|
||||||
# macros. colon means false
|
forcepull="y"
|
||||||
if_do_make=":"
|
fi
|
||||||
if_not_do_make=""
|
|
||||||
if_not_dry_build=":"
|
|
||||||
if_dry_build=""
|
|
||||||
forcepull="y"
|
|
||||||
;;
|
;;
|
||||||
-s) mode="savedefconfig" ;;
|
-s) mode="savedefconfig" ;;
|
||||||
-l) mode="olddefconfig" ;;
|
-l) mode="olddefconfig" ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user