From: Stephan Witt Date: Sun, 21 Aug 2016 15:50:48 +0000 (+0200) Subject: Add check for existance of Qt translations directory X-Git-Tag: 2.3.0alpha1~1114 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a351774745a4bf0781bb027832da5d58efa9d300;hp=589f49ff366f88e3f3be9424397d9d99ebf44dfe;p=features.git Add check for existance of Qt translations directory --- 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" } # -------------------------