Force qmake to update QM files.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-20 08:58:17 +03:00
parent eb0d259f16
commit 2be2c00521

View File

@ -2024,6 +2024,12 @@ for(_translation_name, INSTALL_TRANSLATIONS) {
!exists($${PWD}/$$_translation_name) {
system($$shell_path($$[QT_INSTALL_BINS]/$$LRELEASE) $$shell_path($${PWD}/$${TRANSLATIONS_PATH}/$$_translation_name_ts) -qm $$shell_path($${PWD}/$$_translation_name))
unix {
exists($${OUT_PWD}/$$DESTDIR/valentina) {
system(rm -fv $${OUT_PWD}/$$DESTDIR/valentina)
}
system(rm -fv $${OUT_PWD}/$$DESTDIR/translations/*.qm)
}
}
QMAKE_CLEAN += $${PWD}/$$_translation_name
}