commit a351774745a4bf0781bb027832da5d58efa9d300 Author: Stephan Witt <sw...@lyx.org> Date: Sun Aug 21 17:50:48 2016 +0200
Add check for existance of Qt translations directory --- development/LyX-Mac-binary-release.sh | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/development/LyX-Mac-binary-release.sh b/development/LyX-Mac-binary-release.sh index b59cc8f..82a9a63 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" } # -------------------------