From a351774745a4bf0781bb027832da5d58efa9d300 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sun, 21 Aug 2016 17:50:48 +0200 Subject: [PATCH 1/1] Add check for existance of Qt translations directory --- development/LyX-Mac-binary-release.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/development/LyX-Mac-binary-release.sh b/development/LyX-Mac-binary-release.sh index b59cc8f823..82a9a638e4 100644 --- a/development/LyX-Mac-binary-release.sh +++ b/development/LyX-Mac-binary-release.sh @@ -783,11 +783,13 @@ EOF "@executable_path/../${fwdir}/${version}${libnm}"\ "${target}" done - if [ ! -d "${condir}/translations" ]; then - mkdir -p "${condir}/translations" + if [ -d "${source}"/translations ]; then + if [ ! -d "${condir}/translations" ]; then + mkdir -p "${condir}/translations" + fi + echo Copy Qt translations to "${condir}/translations" + cp -p "${source}"/translations/qt_*.qm "${condir}/translations" fi - echo Copy Qt translations to "${condir}/translations" - cp -p "${source}"/translations/qt_*.qm "${condir}/translations" } # ------------------------- -- 2.39.2