summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-03-10 10:04:04 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-12 11:16:34 +0100
commit12c89098832de7475ad6ad11fe92f50b13f713f4 (patch)
tree0069166527227c8767374eca6f04b8c2163e95f6
parent2dd6f1467fca051e977eeda0369b9b89e25065b1 (diff)
sanitize install target names
qmake uses the variable name verbatim, which makes the generated makefile look "interesting" without this cleanup. Change-Id: If6c4f12563a0ee6429513fbfac534f40bb7c0b97 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
-rw-r--r--mkspecs/features/testcase.prf6
1 files changed, 5 insertions, 1 deletions
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf
index 9bb9875f6d..b00d15579f 100644
--- a/mkspecs/features/testcase.prf
+++ b/mkspecs/features/testcase.prf
@@ -97,7 +97,11 @@ contains(INSTALLS, target) {
# ...
#
for(file, TESTDATA) {
- tdi = testdata_install_$${file}
+ tnam = $$file
+ tnam ~= s,\\.\\.,dotdot,
+ tnam ~= s,[?*],wildcard,
+ tnam ~= s,[^A-Za-z0-9],_,
+ tdi = testdata_$$tnam
tdif = $${tdi}.files
tdip = $${tdi}.path