DEVTOOLS: Added pre-prelease checks for ultima.dat and mm.dat

This commit is contained in:
Eugene Sandulenko 2023-03-15 23:00:11 +01:00
parent ba2b5665d7
commit 03c7597552
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -203,6 +203,10 @@ else
fi
###########
# Release Notes
###########
echo_n "Checking Release Notes..."
VERSION=`grep SCUMMVM_VERSION base/internal_version.h | awk -F\" '{ print $2 }'`
@ -225,6 +229,45 @@ else
echoOk
fi
###########
# MM engine
###########
echo_n "Checking mm.dat..."
fileDate=`git log -1 dists/engine-data/mm.dat | grep Date | sed 's/Date: //'`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_mm/files | wc -l`
if [ "$num_lines" -ne "0" ]; then
echo "$num_lines unprocessed commits. ${RED}Run 'cd devtools/create_mm/files; zip -r9 ../../../dists/engine-data/mm.dat .'${NC}"
failPlus
else
echoOk
fi
###########
# Ultima engine
###########
echo_n "Checking ultima.dat..."
fileDate=`git log -1 dists/engine-data/ultima.dat | grep Date | sed 's/Date: //'`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_ultima/files | wc -l`
if [ "$num_lines" -ne "0" ]; then
echo "$num_lines unprocessed commits. ${RED}Run 'cd devtools/create_ultima/files; zip -r9 ../../../dists/engine-data/ultima.dat .'${NC}"
failPlus
else
echoOk
fi
###########
# Totals