summaryrefslogtreecommitdiffstats
path: root/bin/fixqt4headers
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2011-11-11 09:57:44 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-11 16:47:23 +0100
commitf02c2389ee02ea14adbdf6a76a484dd638326aa9 (patch)
tree310eba903d07a94df65c0a21bc5dca5321c68f37 /bin/fixqt4headers
parent4d85540bdbacdc624649807daf13b52cb36a3259 (diff)
Replace fixqt4headers shell script
Use a perl script with a slightly better scalability. No more quadratic behavior, takes about 10 seconds (instead of 5 hours) on my machine to fix all QtCreator headers Change-Id: Ic7d00c28aec390a1da27a969ece5d8102674e919 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'bin/fixqt4headers')
-rwxr-xr-xbin/fixqt4headers23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/fixqt4headers b/bin/fixqt4headers
deleted file mode 100755
index 06793414e5..0000000000
--- a/bin/fixqt4headers
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-modules=`ls $QTDIR/include`
-
-files=`find * -name '*.h' -or -name '*.cpp' -or -name '*.C' -or -name '*.cc' -or -name '*.CC'`
-
-echo $files
-
-for module in $modules; do
-# once we change other things, change the line from == "QtWidgets" to != "Qt" to get everything fixed
- if [ $module == "QtWidgets" ] || [ $module == "QtPrintSupport" ]; then
- echo $module ":"
- includes=`ls $QTDIR/include/$module`
- for i in $includes; do
-# echo " fixing " $i
- perl -pi -e "s,^#(\\s*)include(\\s+)<.+?/$i>,#\\1include\\2<$module/$i>," $files;
-# perl -pi -e 's,^#include +".+/$i",#include "$module/$i",' $files;
- done;
- fi;
-done;
-
-perl -pi -e 's,<QtGui>,<QtWidgets>,' $files
-perl -pi -e 's,<QtGui/QtGui>,<QtWidgets/QtWidgets>,' $files