2013-10-19 00:29:22 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# it will remove the module prefix in Qt includes, it's usually a problem
|
|
|
|
# since many classes have changed module between Qt4 and Qt5
|
|
|
|
|
|
|
|
for FS in `find $PWD -type f -name '*.h' -or -name '*.cpp'`; do
|
|
|
|
perl -p -i -e 's/#include\s+<Qt\w+\/(\w*)>/#include <\1>/g' $FS
|
2013-11-11 18:10:35 +01:00
|
|
|
perl -p -i -e 's/#include\s+<KDE\/(\w*)>/#include <\1>/g' $FS
|
2013-10-19 00:29:22 +02:00
|
|
|
done
|