]> git.lyx.org Git - features.git/commitdiff
Add check for existance of Qt translations directory
authorStephan Witt <switt@lyx.org>
Sun, 21 Aug 2016 15:50:48 +0000 (17:50 +0200)
committerStephan Witt <switt@lyx.org>
Sun, 21 Aug 2016 15:50:48 +0000 (17:50 +0200)
development/LyX-Mac-binary-release.sh

index b59cc8f82382334c1fb8e43aff450df1c1d4a124..82a9a638e4801c1981097bcbe252bd865b0fe4cd 100644 (file)
@@ -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"
 }
 
 # -------------------------