Skip to content

Commit cd3d45e

Browse files
committed
Update Classic matching for 1.14
Fixes #110
1 parent 7bd0b38 commit cd3d45e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

release.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ toc_version="$root_toc_version"
995995
if [[ -n "$toc_version" && -z "$game_type" ]]; then
996996
# toc -> game type
997997
case $toc_version in
998-
113*) game_type="classic" ;;
998+
11[34]*) game_type="classic" ;;
999999
205*) game_type="bcc" ;;
10001000
*) game_type="retail"
10011001
esac
@@ -1011,15 +1011,15 @@ else
10111011
fi
10121012
# Check for other interface lines
10131013
if [[ -z "$toc_version" ]] || \
1014-
[[ "$game_type" == "classic" && "$toc_version" != "113"* ]] || \
1014+
[[ "$game_type" == "classic" && ("$toc_version" != "113"* && "$toc_version" != "114"*) ]] || \
10151015
[[ "$game_type" == "bcc" && "$toc_version" != "205"* ]] || \
1016-
[[ "$game_type" == "retail" && ("$toc_version" == "113"* || "$toc_version" == "205"*) ]]
1016+
[[ "$game_type" == "retail" && ("$toc_version" == "113"* || "$toc_version" == "114"* || "$toc_version" == "205"*) ]]
10171017
then
10181018
toc_version="$game_type_toc_version"
10191019
if [[ -z "$toc_version" ]]; then
10201020
# Check @non-@ blocks
10211021
case $game_type in
1022-
classic) toc_version=$( sed -n '/@non-[-a-z]*@/,/@end-non-[-a-z]*@/{//b;p}' <<< "$toc_file" | awk '/#[[:blank:]]*## Interface:[[:blank:]]*(113)/ { print $NF; exit }' ) ;;
1022+
classic) toc_version=$( sed -n '/@non-[-a-z]*@/,/@end-non-[-a-z]*@/{//b;p}' <<< "$toc_file" | awk '/#[[:blank:]]*## Interface:[[:blank:]]*(11[34])/ { print $NF; exit }' ) ;;
10231023
bcc) toc_version=$( sed -n '/@non-[-a-z]*@/,/@end-non-[-a-z]*@/{//b;p}' <<< "$toc_file" | awk '/#[[:blank:]]*## Interface:[[:blank:]]*(205)/ { print $NF; exit }' ) ;;
10241024
esac
10251025
# This becomes the actual interface version after string replacements

0 commit comments

Comments
 (0)