summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Goddard <michael.goddard@nokia.com>2011-07-25 22:07:54 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-26 13:40:07 +0200
commit2dc77d9264f3a5b713c1742515d627c92a1b61b6 (patch)
treec48d07860d40347be52a1954b26f910d6b4db9ac /tools
parentd55aa1ad2aa2391eb6b32fa696867fd8b20e570b (diff)
Try to make sure the config test script is installed.
And try to fail a bit more gracefully if it isn't. Change-Id: I62e01c0536aa0a032940d6a9a5ccf5edcfeef221 Reviewed-on: http://codereview.qt.nokia.com/2109 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 698b6a381e..f76b9930a7 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -221,6 +221,12 @@ Configure::Configure(int& argc, char** argv)
createpackage_bat.close();
}
+ QFile configtests(buildPath + "/bin/qtmodule-configtests");
+ if (configtests.open(QFile::WriteOnly)) {
+ QTextStream stream(&configtests);
+ stream << "#!/usr/bin/perl -w" << endl
+ << "require \"" << sourcePath + "/bin/qtmodule-configtests\";" << endl;
+ }
// For Windows CE and shadow builds we need to copy these to the
// build directory.
QFile::copy(sourcePath + "/bin/setcepaths.bat" , buildPath + "/bin/setcepaths.bat");