mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
trees: simplified distclean directory check
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-7
@@ -127,14 +127,10 @@ handle_src_tree()
|
||||
chkvars tree
|
||||
cdir="src/$project/$tree"
|
||||
|
||||
if [ ! -d "$cdir" ]; then
|
||||
if [ "$mode" = "distclean" ] || \
|
||||
[ "$mode" = "crossgcc-clean" ]; then
|
||||
printf "Dir '%s' missing; skip clean\n" "$cdir" 1>&2
|
||||
return 1
|
||||
fi
|
||||
x_ ./update trees -f "$project" "$target"
|
||||
if [ "$mode" = "distclean" ] || [ "$mode" = "crossgcc-clean" ]; then
|
||||
[ -d "$cdir" ] || return 1
|
||||
fi
|
||||
x_ ./update trees -f "$project" "$target"
|
||||
|
||||
[ "$target1" = "utils" ] && [ "$project" = "coreboot" ] && return 0
|
||||
[ -z "$mode" ] && check_cross_compiler; return 0
|
||||
|
||||
Reference in New Issue
Block a user