Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions build_clean_linux64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,21 @@ echo "client dir hash: $CLIENTDIRHASH"
CLIENTDISTHASH=$(<"$basepath/Artifacts/clientdist/_githash_client.txt")
echo "client dist hash: $CLIENTDISTHASH"

#if test $CLIENTDISTHASH != $CLIENTDIRHASH
#then
# echo "Invalid client hash! Please rebuild client!"
# exit 1
#fi
if test "$CLIENTDISTHASH" != "$CLIENTDIRHASH"
then
echo ""
echo "Client artifact is outdated — rebuilding automatically..."
echo " Artifact built from: $CLIENTDISTHASH"
echo " Current Client source: $CLIENTDIRHASH"
echo ""
"$basepath/Artifacts/build_client_clean.sh"
CLIENTDISTHASH=$(<"$basepath/Artifacts/clientdist/_githash_client.txt")
if test "$CLIENTDISTHASH" != "$CLIENTDIRHASH"
then
echo "ERROR: Client rebuild did not produce matching hash!"
exit 1
fi
fi

cd "$basepath"

Expand Down