From 2d9a8c83893be4abde136ec87fc3db220ce8a0a5 Mon Sep 17 00:00:00 2001 From: Kai Koehne <kai.koehne@theqtcompany.com> Date: Wed, 11 Nov 2015 11:08:39 +0100 Subject: [PATCH] Fix install rules for generated _en.ts files Commit aabb833032fa44c7 introduced _en.ts files that are auto-generated in the build directory. However, $$files() in this case returns absolute paths, which the text substition rules later on adds again. Fix this by first removing the absolute path. Task-number: QTBUG-49337 Change-Id: I245010121893e58145e43593b50a4e8209740ff0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com> --- translations/translations.pro | 1 + 1 file changed, 1 insertion(+) diff --git a/translations/translations.pro b/translations/translations.pro index 260f900..e78d9c9 100644 --- a/translations/translations.pro +++ b/translations/translations.pro @@ -122,6 +122,7 @@ TRANSLATIONS = $$files(*.ts) translations.path = $$[QT_INSTALL_TRANSLATIONS] translations.files = $$TRANSLATIONS translations.files ~= s,\\.ts$,.qm,g +translations.files ~= s,^$$re_escape($$OUT_PWD),,g translations.files ~= s,^,$$MODULE_BASE_OUTDIR/translations/,g translations.CONFIG += no_check_exist INSTALLS += translations -- GitLab