qt5base-lts/bin/fixqt4headers
Lars Knoll f4f1b53b96 Move printing into it's own library
Create a libQtPrintSupport library that contains our current
printing infrastructure. Long term this will get replaced
with a libQtPrint, as the current architecture is not
really maintainable.

Change-Id: I7362fff6786b58c5b4e9213c23eda36d15048aa2
Reviewed-on: http://codereview.qt.nokia.com/3209
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2011-08-19 09:16:42 +02:00

24 lines
781 B
Bash
Executable File

#!/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,^#include +<.+/$i>,#include <$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