2011-05-07 19:52:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
modules=`ls $QTDIR/include`
|
|
|
|
|
2011-08-11 08:44:39 +00:00
|
|
|
files=`find * -name '*.h' -or -name '*.cpp' -or -name '*.C' -or -name '*.cc' -or -name '*.CC'`
|
2011-05-07 19:52:08 +00:00
|
|
|
|
|
|
|
echo $files
|
|
|
|
|
|
|
|
for module in $modules; do
|
|
|
|
# once we change other things, change the line from == "QtWidgets" to != "Qt" to get everything fixed
|
2011-08-16 14:38:56 +00:00
|
|
|
if [ $module == "QtWidgets" ] || [ $module == "QtPrintSupport" ]; then
|
2011-05-07 19:52:08 +00:00
|
|
|
echo $module ":"
|
|
|
|
includes=`ls $QTDIR/include/$module`
|
|
|
|
for i in $includes; do
|
|
|
|
# echo " fixing " $i
|
2011-11-02 23:42:32 +00:00
|
|
|
perl -pi -e "s,^#(\\s*)include(\\s+)<.+?/$i>,#\\1include\\2<$module/$i>," $files;
|
2011-05-07 19:52:08 +00:00
|
|
|
# perl -pi -e 's,^#include +".+/$i",#include "$module/$i",' $files;
|
|
|
|
done;
|
|
|
|
fi;
|
|
|
|
done;
|
2011-05-08 07:47:19 +00:00
|
|
|
|
|
|
|
perl -pi -e 's,<QtGui>,<QtWidgets>,' $files
|
|
|
|
perl -pi -e 's,<QtGui/QtGui>,<QtWidgets/QtWidgets>,' $files
|