From ddc29fbdbf3adc10a80b9368028a05c2921da4ac Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 7 May 2024 13:05:03 +0200 Subject: [PATCH] Correct copy of hunspell dictionary to bundle with internal hunspell w/o framework --- development/LyX-Mac-binary-release.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/development/LyX-Mac-binary-release.sh b/development/LyX-Mac-binary-release.sh index cf4124e3b2..708cd51cfa 100644 --- a/development/LyX-Mac-binary-release.sh +++ b/development/LyX-Mac-binary-release.sh @@ -944,12 +944,10 @@ copy_dictionaries() { cp -p -r "${ASpellInstallDir}/lib/aspell-0.60"/* "${ASpellResources}"/data cp -p -r "${ASpellInstallDir}/share/aspell"/* "${ASpellResources}"/dicts fi - if [ -d "${HunSpellInstallDir}" -a "yes" = "${hunspell_dictionaries}" ]; then + if [ -d "${DictionarySourceDir}" -a "yes" = "${hunspell_dictionaries}" ]; then HunSpellResources="${LyxAppPrefix}/Contents/Resources" - if [ -d "${DictionarySourceDir}" ]; then - ( cd "${DictionarySourceDir}" && find dicts -name .svn -prune -o -type f -print | cpio -pmdv "${HunSpellResources}" ) - deduplicate "${HunSpellResources}"/dicts - fi + ( cd "${DictionarySourceDir}" && find dicts -name .svn -prune -o -type f -print | cpio -pmdv "${HunSpellResources}" ) + deduplicate "${HunSpellResources}"/dicts fi if [ -d "${DictionarySourceDir}" -a "yes" = "${thesaurus_deployment}" ]; then MyThesResources="${LyxAppPrefix}/Contents/Resources" @@ -1075,7 +1073,7 @@ if [ ${LyxOnlyPackage:-"no"} = "no" ]; then build_lyx convert_universal copy_dictionaries - test -n "${CODESIGN_IDENTITY}" && code_sign "${LYX_BUNDLE_PATH}" find "${LyxAppPrefix}" -type d -exec chmod go-w '{}' \; + test -n "${CODESIGN_IDENTITY}" && code_sign "${LYX_BUNDLE_PATH}" fi build_package