trees: simplified distclean directory check
Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
5ba0433b5f
commit
0cb84a8dd1
|
@ -127,14 +127,10 @@ handle_src_tree()
|
||||||
chkvars tree
|
chkvars tree
|
||||||
cdir="src/$project/$tree"
|
cdir="src/$project/$tree"
|
||||||
|
|
||||||
if [ ! -d "$cdir" ]; then
|
if [ "$mode" = "distclean" ] || [ "$mode" = "crossgcc-clean" ]; then
|
||||||
if [ "$mode" = "distclean" ] || \
|
[ -d "$cdir" ] || return 1
|
||||||
[ "$mode" = "crossgcc-clean" ]; then
|
|
||||||
printf "Dir '%s' missing; skip clean\n" "$cdir" 1>&2
|
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
x_ ./update trees -f "$project" "$target"
|
x_ ./update trees -f "$project" "$target"
|
||||||
fi
|
|
||||||
|
|
||||||
[ "$target1" = "utils" ] && [ "$project" = "coreboot" ] && return 0
|
[ "$target1" = "utils" ] && [ "$project" = "coreboot" ] && return 0
|
||||||
[ -z "$mode" ] && check_cross_compiler; return 0
|
[ -z "$mode" ] && check_cross_compiler; return 0
|
||||||
|
|
Loading…
Reference in New Issue