DEVTOOLS: Added bagel.dat and nancy.dat prerelease checks

This commit is contained in:
Eugene Sandulenko 2024-05-22 22:44:24 +02:00
parent 71ba8eb602
commit 6bd740d35e
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -517,6 +517,44 @@ else
fi
###########
# Bagel engine
###########
echo_n "Checking bagel.dat..."
fileDate=`git log -1 dists/engine-data/bagel.dat | grep Date | sed 's/Date: //'`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_bagel/files | wc -l`
if [ "$num_lines" -ne "0" ]; then
echo -e "$num_lines unprocessed commits. ${RED}Run 'cd devtools/create_bagel/files; zip -r9 ../../../dists/engine-data/bagel.dat .'${NC}"
failPlus
else
echoOk
fi
###########
# Nancy engine
###########
echo_n "Checking nancy.dat..."
fileDate=`git log -1 dists/engine-data/nancy.dat | grep Date | sed 's/Date: //'`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_nancy/files | wc -l`
if [ "$num_lines" -ne "0" ]; then
echo -e "$num_lines unprocessed commits. ${RED}Run 'make devtools/create_nancy;cd devtools/create_nancy;./create_nancy;cp nancy.dat ../../dists/engine-data'${NC}"
failPlus
else
echoOk
fi
###########
# Ultima engine
###########