sanitize install target names
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Sat, 10 Mar 2012 09:04:04 +0000 (10:04 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Mar 2012 10:16:34 +0000 (11:16 +0100)
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>
mkspecs/features/testcase.prf

index 9bb9875..b00d155 100644 (file)
@@ -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