From b58a7aef17f87e5b9da24d219eeb390ed299bed1 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 4 Nov 2011 18:52:11 +0100 Subject: [PATCH] QtQuick/Html apps: Fix some non-shadowbuild cases If the .target of a .source/.target tuple is empty, we get a "//" in the path. Let's replace it with a "/" before string-comparing it to another path. If the .target is just a "." like in the HTML template code, we get to replace a "/./" with a "/". Change-Id: I5b6fef93c3efd5a21f9461b6e85c76f13bfb75e1 Task-Id: QTBUG-21060 Reviewed-by: Oswald Buddenhagen Reviewed-by: Alessandro Portale --- share/qtcreator/templates/shared/deployment.pri | 2 ++ src/plugins/qt4projectmanager/wizards/abstractmobileapp.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/templates/shared/deployment.pri b/share/qtcreator/templates/shared/deployment.pri index 9fcc9f55057..4ebaa74be97 100644 --- a/share/qtcreator/templates/shared/deployment.pri +++ b/share/qtcreator/templates/shared/deployment.pri @@ -29,6 +29,7 @@ symbian { sourcePathSegments = $$split(source, \\) target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) target = $$replace(target, /, \\) + target ~= s,\\\\\\.?\\\\,\\, !isEqual(source,$$target) { !isEmpty(copyCommand):copyCommand += && isEqual(QMAKE_DIR_SEP, \\) { @@ -73,6 +74,7 @@ symbian { target = $$replace(target, \\\\, /) sourcePathSegments = $$split(source, /) targetFullPath = $$target/$$last(sourcePathSegments) + targetFullPath ~= s,/\\.?/,/, !isEqual(source,$$targetFullPath) { !isEmpty(copyCommand):copyCommand += && copyCommand += $(MKDIR) \"$$target\" diff --git a/src/plugins/qt4projectmanager/wizards/abstractmobileapp.cpp b/src/plugins/qt4projectmanager/wizards/abstractmobileapp.cpp index e671200cd3b..bf5396d26c5 100644 --- a/src/plugins/qt4projectmanager/wizards/abstractmobileapp.cpp +++ b/src/plugins/qt4projectmanager/wizards/abstractmobileapp.cpp @@ -60,7 +60,7 @@ const QString AbstractMobileApp::ProFileComment(QLatin1String("#")); const QString AbstractMobileApp::DeploymentPriFileName(QLatin1String("deployment.pri")); const QString AbstractMobileApp::FileChecksum(QLatin1String("checksum")); const QString AbstractMobileApp::FileStubVersion(QLatin1String("version")); -const int AbstractMobileApp::StubVersion = 6; +const int AbstractMobileApp::StubVersion = 7; AbstractMobileApp::AbstractMobileApp() : QObject()