mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
tree.sh: rename hashvar to badhashvar
now the code that uses it makes a bit more sense to the casual reader. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+4
-4
@@ -188,7 +188,7 @@ project_up_to_date()
|
||||
eval "`setvars "" old_hash hash`"
|
||||
hashname="$1"
|
||||
hashtype="$2"
|
||||
hashvar="$3"
|
||||
badhashvar="$3"
|
||||
shift 3
|
||||
|
||||
x_ mkdir -p "$XBMK_CACHE/$hashname"
|
||||
@@ -203,14 +203,14 @@ project_up_to_date()
|
||||
hash="$(x_ sha512sum "$xbtmp/tmp.hash" | awk '{print $1}' || \
|
||||
err)" || err "$hashtype: Can't read sha512 of '$xbtmp/tmp.hash'"
|
||||
|
||||
[ "$hash" != "$old_hash" ] && eval "$hashvar=\"y\""
|
||||
[ "$hash" != "$old_hash" ] && eval "$badhashvar=\"y\""
|
||||
[ -f "$XBMK_CACHE/$hashname/$project$hashtype" ] || \
|
||||
eval "$hashvar=\"y\""
|
||||
eval "$badhashvar=\"y\""
|
||||
|
||||
printf "%s\n" "$hash" > "$XBMK_CACHE/$hashname/$project$hashtype" || \
|
||||
err "!mk $XBMK_CACHE/$hashname/$project$hashtype"
|
||||
|
||||
eval "[ \"\$$hashvar\" = \"y\" ] && return 1"; :
|
||||
eval "[ \"\$$badhashvar\" = \"y\" ] && return 1"; :
|
||||
}
|
||||
|
||||
check_cross_compiler()
|
||||
|
||||
Reference in New Issue
Block a user