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>
This commit is contained in:
Oswald Buddenhagen 2012-03-10 10:04:04 +01:00 committed by Qt by Nokia
parent 2dd6f1467f
commit 12c8909883

View 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