summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2011-11-04 18:52:11 +0100
committerAlessandro Portale <alessandro.portale@nokia.com>2011-11-04 20:08:31 +0100
commitb58a7aef17f87e5b9da24d219eeb390ed299bed1 (patch)
tree412b31a2dd3a5b42465bf86d9ef829eefaee752f /share/qtcreator/templates
parentecfb958137a2f2326b11369461806dcc7166ea58 (diff)
downloadqt-creator-b58a7aef17f87e5b9da24d219eeb390ed299bed1.tar.gz
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 <oswald.buddenhagen@nokia.com> Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Diffstat (limited to 'share/qtcreator/templates')
-rw-r--r--share/qtcreator/templates/shared/deployment.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/templates/shared/deployment.pri b/share/qtcreator/templates/shared/deployment.pri
index 9fcc9f5505..4ebaa74be9 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\"