trees: simplified distclean directory check
Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
5ba0433b5f
commit
0cb84a8dd1
10
script/trees
10
script/trees
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue