Add check for existance of Qt translations directory

This commit is contained in:
Stephan Witt 2016-08-21 17:50:48 +02:00
parent 589f49ff36
commit a351774745

View 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"
}
# -------------------------