File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1665,9 +1665,18 @@ copy_directory_tree() {
1665
1665
if [ " $_cdt_subdir " != " $file " ]; then
1666
1666
mkdir -p " $_cdt_destdir /$_cdt_subdir "
1667
1667
fi
1668
+ # Check for marked hard embedded libraries
1669
+ _cdt_external_slug=
1670
+ if [[ $_cdt_source_file == * " .lua" ]] && _cdt_external_slug=$( grep -Po " (?i)(?<=@)curseforge-project-slug[[:space:]]*:[[:space:]]*[^@]+(?=@)" " $_cdt_source_file " ) ; then
1671
+ _cdt_external_slug=" ${_cdt_external_slug##*: } "
1672
+ _cdt_external_slug=" ${_cdt_external_slug// [[:space:]]/ } "
1673
+ if [[ -n $_cdt_external_slug ]]; then
1674
+ relations[" ${_cdt_external_slug,,} " ]=" embeddedLibrary"
1675
+ fi
1676
+ fi
1668
1677
# Check if the file matches a pattern for keyword replacement.
1669
1678
if [ -n " $_cdt_only_copy " ] || ! match_pattern " $file " " *.lua:*.md:*.toc:*.txt:*.xml" ; then
1670
- echo " Copying: $file (unchanged)"
1679
+ echo " Copying: $file (unchanged)${_cdt_external_slug : +(embedded : " $_cdt_external_slug " )} "
1671
1680
cp " $_cdt_source_file " " $_cdt_destdir /$_cdt_subdir "
1672
1681
else
1673
1682
_cdt_file_gametype=" $_cdt_gametype "
@@ -1724,7 +1733,7 @@ copy_directory_tree() {
1724
1733
# Set version control values for the file.
1725
1734
set_info_file " $_cdt_source_file "
1726
1735
1727
- echo " Copying: $file "
1736
+ echo " Copying: $file ${_cdt_external_slug : + (embedded : " $_cdt_external_slug " )} "
1728
1737
1729
1738
# Make sure we're not causing any surprises
1730
1739
if [[ -z $_cdt_file_gametype && ( $file == * " .lua" || $file == * " .xml" || $file == * " .toc" ) ]] && grep -q ' @\(non-\)\?version-\(retail\|classic\|bcc\|wrath\)@' " $_cdt_source_file " ; then
You can’t perform that action at this time.
0 commit comments