From 2be2c005217d670f903866b8a3eda05056726214 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Oct 2015 08:58:17 +0300 Subject: [PATCH] Force qmake to update QM files. --HG-- branch : develop --- src/app/valentina/valentina.pro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/valentina/valentina.pro b/src/app/valentina/valentina.pro index 72fde4229..689f66a9a 100644 --- a/src/app/valentina/valentina.pro +++ b/src/app/valentina/valentina.pro @@ -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 }