Skip to content

Commit

Permalink
Fix TOC parsing when the package-as addon is in a subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed May 21, 2024
1 parent d0ccf80 commit f3382d0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1337,10 +1337,14 @@ for toc_path in "$topdir/$package"{,-Mainline,_Mainline,-Classic,_Classic,-Vanil
toc_root_paths["$topdir"]="$package"
fi
done
# Also check other project root directories for the root TOC file
# Try parsing the project addon in move-folders for info next
for path in "${!toc_root_paths[@]}"; do
if [[ -f "$path/$package.toc" ]]; then
set_toc_project_info "$path/$package.toc"
if [[ ${toc_root_paths[$path]} == "$package" ]]; then
for toc_path in "$path/$package"{,-Mainline,_Mainline,-Classic,_Classic,-Vanilla,_Vanilla,-BCC,_BCC,-TBC,_TBC,-Wrath,_Wrath,-WOTLKC,_WOTLKC,-Cata,_Cata}.toc; do
if [[ -f "$toc_path" ]]; then
set_toc_project_info "$toc_path"
fi
done
fi
done

Expand Down

0 comments on commit f3382d0

Please sign in to comment.