Experimental scripts have been moved to the TDE/scripts repository.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 3 years ago
parent dba036816b
commit 9521203755
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1,524 +0,0 @@
#!/bin/bash
#
# Licensed under the GPL v2
THISSCRIPT=$(readlink -f $0)
if [[ ! -e "$THISSCRIPT" ]]; then
echo "Unable to find myself! Exiting..."
exit 1
fi
SCRIPTPATH=`dirname $THISSCRIPT`
find ./ -type f -not -iwholename '*.git*' -print0 |
xargs -r0 grep -ElI "([^a-zA-Z0-9]|^)(\
(|-l|lib)kdecorations|\
(|-l|lib)kdecore|\
(|-l|lib)kdefakes|\
(|-l|lib)kdefx|\
(|-l|lib)kdegames|\
(|-l|lib)kdeinit|\
(|-l|lib)kdepim|\
(|-l|lib)kdeprint|\
(|-l|lib)kdesasl|\
(|-l|lib)kdesu|\
(|-l|lib)kdesvnpart|\
(|-l|lib)kdeui|\
KDECORATIONS|\
KDECORE|\
KDEFAKES|\
KDEFX|\
KDEGAMES|\
KDEINIT|\
KDEPIM|\
KDEPRINT|\
KDESASL|\
KDESU|\
KDESVNPART|\
KDEUI|\
KDNSSD|\
KIMPROXY|\
KIO([^a-zA-Z0-9]|\$)|\
KPARTS|\
KSPELL|\
KSYCOCA|\
KUNITTEST|\
KUTILS|\
(|-l|lib)kdeaccessibility|\
(|-l|lib)kdeaddons|\
(|-l|lib)kdeadmin|\
(|-l|lib)kdeartwork|\
(|-l|lib)kdebase|\
(|-l|lib)kdebindings|\
(|-l|lib)kdeedu|\
(|-l|lib)kdegames|\
(|-l|lib)kdegraphics|\
kde-i18n|\
(|-l|lib)kdelibs|\
(|-l|lib)kdemultimedia|\
(|-l|lib)kdenetwork|\
(|-l|lib)kdepim|\
(|-l|lib)kdesdk|\
(|-l|lib)kdetoys|\
(|-l|lib)kdeutils|\
(|-l|lib)kdevelop|\
(|-l|lib)kdewebdev|\
desktop-effects-kde|\
kde-guidance|\
kde-style-lipstik|\
kde-style-qtcurve|\
kdesudo|\
kdesvn|\
kde-systemsettings|\
kwin-style-crystal|\
kwin|\
KDE_VERSION|\
kdeversion|\
startkde|\
pykde|\
KDEHOME|\
KDEDIR|\
KDE_MULTIHEAD|\
KDE_SESSION|\
kdehome|\
kdedir|\
KDEROOTHOME|\
kderoothome|\
KDE_MAKE_VERSION|\
kdm|\
KDM|\
ksocket|\
KSOCKET|\
kcache|\
KCACHE|\
KDETMP|\
KDEVARTMP|\
KDEWM|\
include/kde([^\.]|\$)|\
\$\{INCLUDE_INSTALL_DIR\}/kde([^\.]|\$)|\
kde-config|\
KDE_FORK_SLAVES|\
KDE_HOME_READONLY|\
KDE_NO_IPV6|\
KDE_IS_PRELINKED|\
KDE_UTF8_FILENAMES|\
KDESYCOCA|\
KApplication|\
KCmdLineArgs|\
KInstance|\
KAboutData|\
KCModule|\
KConfig|\
KServer|\
KSocket|\
KIO\.|\
KIO:|\
KIO;|\
\<KIO\>|\
KIO_|\
KIOInput|\
KIOJob|\
KIOConfig|\
KIOBuffer|\
KBuffer|\
kcmodule|\
kconfig_compiler|\
kunittestmodrunner|\
kioexec|\
kio_|\
kmailservice|\
ktelnetservice|\
ksendbugmail|\
(|-l|lib)kfile|\
ktradertest|\
kbuildsycoca|\
kde-menu|\
kmimelist|\
kioslave|\
kio/|\
(|-l|lib)kio\>|\
kstartupconfig|\
kdostartupconfig|\
klauncher|\
kab2kabc|\
kcmshell|\
kconf|\
khotnewstuff|\
(|-l|lib)ksycoca|\
(|-l|lib)kunittest|\
(|-l|lib)kwallet|\
kntlm|\
(|-l|lib)kparts|\
(|-l|lib)kutils|\
(|-l|lib)kspell|\
(|-l|lib)kmdi|\
(|-l|lib)kresources|\
kscript|\
kmediaplayer|\
(|-l|lib)kimproxy|\
(|-l|lib)ktexteditor|\
kcert|\
krandr|\
(|-l|lib)khtml|\
kmulti|\
kmid|\
kscreensaver|\
(|-l|lib)kdnssd|\
krsync|\
kiobuffer|\
KHTML|\
KShared|\
KStandard|\
KStartup|\
KLocale|\
KLock|\
KTrader|\
KLaunch|\
KShort|\
KStdAccel|\
KAccel|\
KAction|\
KMain|\
KTool|\
KPopup|\
KToggle|\
KRadio|\
KSelect|\
KList|\
KRecent|\
KFont|\
KPaste|\
klaunch|\
kshort|\
kstdaccel|\
kaccel|\
kaction|\
kmain|\
ktool|\
kpopup|\
ktoggle|\
kradio|\
kselect|\
klist|\
krecent|\
kfont|\
kpaste|\
kdisplay|\
KStyle|\
KIcon|\
KZone|\
KCrash|\
KCmd|\
KAbout|\
KComp|\
KGlobal|\
(|the)KProcess|\
KClipboard|\
Kwallet|\
KWallet|\
KWALLET|\
kcompletionbox|\
kaboutapplication\.|\
kaboutdata\.|\
kaboutdialog\.|\
kaboutkde\.|\
kcmdlineargs\.|\
kapplication\.|\
kstyle\.|\
drawKStylePrimitive|\
kdiroperator\.|\
klocale\.|\
kmessagebox\.|\
ktempfile\.|\
kemailsettings\.|\
kglobal\.|\
kglobalsettings\.|\
kmenubar\.|\
kprotocolmanager\.|\
kstartupinfo\.|\
kabc|\
(|-l|lib)kabc|\
makekdewidgets|\
MAKEKDEWIDGETS|\
kdewidgets|\
Categories=Qt;KDE|\
X-KDE-|\
kde\.org/tdehotnewstuff|\
tdevelop[a-z_\-]*@[tk]develop\.org|\
tdevelop\.org|\
tdewebdev\.org|\
\<tdelistr|\
kde toolbar widget\
)" |
tr "\n" "\0" |
xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdecorations|\1tdecorations|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdecore|\1tdecore|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdefakes|\1tdefakes|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdefx|\1tdefx|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdegames|\1tdegames|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeinit|\1tdeinit|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdepim|\1tdepim|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeprint|\1tdeprint|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesasl|\1tdesasl|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesu|\1tdesu|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesvnpart|\1tdesvnpart|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeui|\1tdeui|g" \
-e "s|([^a-zA-Z0-9]\|^)KDECORATIONS|\1TDECORATIONS|g" \
-e "s|([^a-zA-Z0-9]\|^)KDECORE|\1TDECORE|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEFAKES|\1TDEFAKES|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEFX|\1TDEFX|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEGAMES|\1TDEGAMES|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEINIT|\1TDEINIT|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEPIM|\1TDEPIM|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEPRINT|\1TDEPRINT|g" \
-e "s|([^a-zA-Z0-9]\|^)KDESASL|\1TDESASL|g" \
-e "s|([^a-zA-Z0-9]\|^)KDESU|\1TDESU|g" \
-e "s|([^a-zA-Z0-9]\|^)KDESVNPART|\1TDESVNPART|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEUI|\1TDEUI|g" \
-e "s|([^a-zA-Z0-9]\|^)KDNSSD|\1TDEDNSSD|g" \
-e "s|([^a-zA-Z0-9]\|^)KIMPROXY|\1TDEIMPROXY|g" \
-e "s|([^a-zA-Z0-9]\|^)KIO([^a-zA-Z0-9]\|\$)|\1TDEIO\2|g" \
-e "s|([^a-zA-Z0-9]\|^)KPARTS|\1TDEPARTS|g" \
-e "s|([^a-zA-Z0-9]\|^)KSPELL|\1TDESPELL|g" \
-e "s|([^a-zA-Z0-9]\|^)KSYCOCA|\1TDESYCOCA|g" \
-e "s|([^a-zA-Z0-9]\|^)KUNITTEST|\1TDEUNITTEST|g" \
-e "s|([^a-zA-Z0-9]\|^)KUTILS|\1TDEUTILS|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeaccessibility|\1tdeaccessibility|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeaddons|\1tdeaddons|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeadmin|\1tdeadmin|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeartwork|\1tdeartwork|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdebase|\1tdebase|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdebindings|\1tdebindings|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeedu|\1tdeedu|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdegames|\1tdegames|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdegraphics|\1tdegraphics|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-i18n|\1tde-i18n|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdelibs|\1tdelibs|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdemultimedia|\1tdemultimedia|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdenetwork|\1tdenetwork|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdepim|\1tdepim|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesdk|\1tdesdk|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdetoys|\1tdetoys|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeutils|\1tdeutils|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdevelop|\1tdevelop|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdewebdev|\1tdewebdev|g" \
-e "s|([^a-zA-Z0-9]\|^)desktop-effects-kde|\1desktop-effects-tde|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-guidance|\1tde-guidance|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-style-lipstik|\1tde-style-lipstik|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-style-qtcurve|\1tde-style-qtcurve|g" \
-e "s|([^a-zA-Z0-9]\|^)kdesudo|\1tdesudo|g" \
-e "s|([^a-zA-Z0-9]\|^)kdesvn|\1tdesvn|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-systemsettings|\1tde-systemsettings|g" \
-e "s|([^a-zA-Z0-9]\|^)kwin-style-crystal|\1twin-style-crystal|g" \
-e "s|([^a-zA-Z0-9]\|^)kwin|\1twin|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_VERSION|\1TDE_VERSION|g" \
-e "s|([^a-zA-Z0-9]\|^)kdeversion|\1tdeversion|g" \
-e "s|([^a-zA-Z0-9]\|^)startkde|\1starttde|g" \
-e "s|([^a-zA-Z0-9]\|^)pykde|\1pytde|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEHOME|\1TDEHOME|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEDIR|\1TDEDIR|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_MULTIHEAD|\1TDE_MULTIHEAD|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_SESSION|\1TDE_SESSION|g" \
-e "s|([^a-zA-Z0-9]\|^)kdehome|\1tdehome|g" \
-e "s|([^a-zA-Z0-9]\|^)kdedir|\1tdedir|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEROOTHOME|\1TDEROOTHOME|g" \
-e "s|([^a-zA-Z0-9]\|^)kderoothome|\1tderoothome|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_MAKE_VERSION|\1TDE_MAKE_VERSION|g" \
-e "s|([^a-zA-Z0-9]\|^)kdm|\1tdm|g" \
-e "s|([^a-zA-Z0-9]\|^)KDM|\1TDM|g" \
-e "s|([^a-zA-Z0-9]\|^)ksocket|\1tdesocket|g" \
-e "s|([^a-zA-Z0-9]\|^)KSOCKET|\1TDESOCKET|g" \
-e "s|([^a-zA-Z0-9]\|^)kcache|\1tdecache|g" \
-e "s|([^a-zA-Z0-9]\|^)KCACHE|\1TDECACHE|g" \
-e "s|([^a-zA-Z0-9]\|^)KDETMP|\1TDETMP|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEVARTMP|\1TDEVARTMP|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEWM|\1TDEWM|g" \
-e "s|([^a-zA-Z0-9]\|^)include/kde([^\.]\|\$)|\1include/tde\2|g" \
-e "s|([^a-zA-Z0-9]\|^)\$\{INCLUDE_INSTALL_DIR\}/kde([^\.]\|\$)|\1\${INCLUDE_INSTALL_DIR}/tde\2|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-config|\1tde-config|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_FORK_SLAVES|\1TDE_FORK_SLAVES|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_HOME_READONLY|\1TDE_HOME_READONLY|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_NO_IPV6|\1TDE_NO_IPV6|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_IS_PRELINKED|\1TDE_IS_PRELINKED|g" \
-e "s|([^a-zA-Z0-9]\|^)KDE_UTF8_FILENAMES|\1TDE_UTF8_FILENAMES|g" \
-e "s|([^a-zA-Z0-9]\|^)KDESYCOCA|\1TDESYCOCA|g" \
\
-e "s|([^a-zA-Z0-9]\|^)KApplication|\1TDEApplication|g" \
-e "s|([^a-zA-Z0-9]\|^)KCmdLineArgs|\1TDECmdLineArgs|g" \
-e "s|([^a-zA-Z0-9]\|^)KInstance|\1TDEInstance|g" \
-e "s|([^a-zA-Z0-9]\|^)KAboutData|\1TDEAboutData|g" \
\
-e "s|([^a-zA-Z0-9]\|^)KCModule|\1TDECModule|g" \
-e "s|([^a-zA-Z0-9]\|^)KConfig|\1TDEConfig|g" \
-e "s|([^a-zA-Z0-9]\|^)KServer|\1TDEServer|g" \
-e "s|([^a-zA-Z0-9]\|^)KSocket|\1TDESocket|g" \
-e "s|([^a-zA-Z0-9]\|^)KIO\.|\1TDEIO.|g" \
-e "s|([^a-zA-Z0-9]\|^)KIO:|\1TDEIO:|g" \
-e "s|([^a-zA-Z0-9]\|^)KIO;|\1TDEIO;|g" \
-e "s|([^a-zA-Z0-9]\|^)\<KIO\>|\1TDEIO|g" \
-e "s|([^a-zA-Z0-9]\|^)KIO_|\1TDEIO_|g" \
-e "s|([^a-zA-Z0-9]\|^)KIOInput|\1TDEIOInput|g" \
-e "s|([^a-zA-Z0-9]\|^)KIOJob|\1TDEIOJob|g" \
-e "s|([^a-zA-Z0-9]\|^)KIOConfig|\1TDEIOConfig|g" \
-e "s|([^a-zA-Z0-9]\|^)KIOBuffer|\1TDEIOBuffer|g" \
-e "s|([^a-zA-Z0-9]\|^)KBuffer|\1TDEBuffer|g" \
-e "s|([^a-zA-Z0-9]\|^)kcmodule|\1tdecmodule|g" \
\
-e "s|([^a-zA-Z0-9]\|^)kconfig_compiler|\1tdeconfig_compiler|g" \
-e "s|([^a-zA-Z0-9]\|^)kunittestmodrunner|\1tdeunittestmodrunner|g" \
-e "s|([^a-zA-Z0-9]\|^)kioexec|\1tdeioexec|g" \
-e "s|([^a-zA-Z0-9]\|^)kio_|\1tdeio_|g" \
-e "s|([^a-zA-Z0-9]\|^)kmailservice|\1tdemailservice|g" \
-e "s|([^a-zA-Z0-9]\|^)ktelnetservice|\1tdetelnetservice|g" \
-e "s|([^a-zA-Z0-9]\|^)ksendbugmail|\1tdesendbugmail|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kfile|\1tdefile|g" \
-e "s|([^a-zA-Z0-9]\|^)ktradertest|\1tdetradertest|g" \
-e "s|([^a-zA-Z0-9]\|^)kbuildsycoca|\1tdebuildsycoca|g" \
-e "s|([^a-zA-Z0-9]\|^)kde-menu|\1tde-menu|g" \
-e "s|([^a-zA-Z0-9]\|^)kmimelist|\1tdemimelist|g" \
-e "s|([^a-zA-Z0-9]\|^)kioslave|\1tdeioslave|g" \
-e "s|([^a-zA-Z0-9]\|^)kio/|\1tdeio/|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kio\>|\1tdeio|g" \
-e "s|([^a-zA-Z0-9]\|^)kstartupconfig|\1tdestartupconfig|g" \
-e "s|([^a-zA-Z0-9]\|^)kdostartupconfig|\1tdedostartupconfig|g" \
-e "s|([^a-zA-Z0-9]\|^)klauncher|\1tdelauncher|g" \
-e "s|([^a-zA-Z0-9]\|^)kab2kabc|\1tdeab2tdeabc|g" \
-e "s|([^a-zA-Z0-9]\|^)kcmshell|\1tdecmshell|g" \
-e "s|([^a-zA-Z0-9]\|^)kconf|\1tdeconf|g" \
-e "s|([^a-zA-Z0-9]\|^)khotnewstuff|\1tdehotnewstuff|g" \
\
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)ksycoca|\1tdesycoca|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kunittest|\1tdeunittest|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kwallet|\1tdewallet|g" \
-e "s|([^a-zA-Z0-9]\|^)kntlm|\1tdentlm|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kparts|\1tdeparts|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kutils|\1tdeutils|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kspell|\1tdespell|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kmdi|\1tdemdi|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kresources|\1tderesources|g" \
-e "s|([^a-zA-Z0-9]\|^)kscript|\1tdescript|g" \
-e "s|([^a-zA-Z0-9]\|^)kmediaplayer|\1tdemediaplayer|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kimproxy|\1tdeimproxy|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)ktexteditor|\1tdetexteditor|g" \
-e "s|([^a-zA-Z0-9]\|^)kcert|\1tdecert|g" \
-e "s|([^a-zA-Z0-9]\|^)krandr|\1tderandr|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)khtml|\1tdehtml|g" \
-e "s|([^a-zA-Z0-9]\|^)kmulti|\1tdemulti|g" \
-e "s|([^a-zA-Z0-9]\|^)kmid|\1tdemid|g" \
-e "s|([^a-zA-Z0-9]\|^)kscreensaver|\1tdescreensaver|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdnssd|\1tdednssd|g" \
-e "s|([^a-zA-Z0-9]\|^)krsync|\1tdersync|g" \
\
-e "s|([^a-zA-Z0-9]\|^)kiobuffer|\1tdeiobuffer|g" \
-e "s|([^a-zA-Z0-9]\|^)KHTML|\1TDEHTML|g" \
-e "s|([^a-zA-Z0-9]\|^)KShared|\1TDEShared|g" \
-e "s|([^a-zA-Z0-9]\|^)KStandard|\1TDEStandard|g" \
-e "s|([^a-zA-Z0-9]\|^)KStartup|\1TDEStartup|g" \
-e "s|([^a-zA-Z0-9]\|^)KLocale|\1TDELocale|g" \
-e "s|([^a-zA-Z0-9]\|^)KLock|\1TDELock|g" \
-e "s|([^a-zA-Z0-9]\|^)KTrader|\1TDETrader|g" \
-e "s|([^a-zA-Z0-9]\|^)KLaunch|\1TDELaunch|g" \
-e "s|([^a-zA-Z0-9]\|^)KShort|\1TDEShort|g" \
-e "s|([^a-zA-Z0-9]\|^)KStdAccel|\1TDEStdAccel|g" \
-e "s|([^a-zA-Z0-9]\|^)KAccel|\1TDEAccel|g" \
-e "s|([^a-zA-Z0-9]\|^)KAction|\1TDEAction|g" \
-e "s|([^a-zA-Z0-9]\|^)KMain|\1TDEMain|g" \
-e "s|([^a-zA-Z0-9]\|^)KTool|\1TDETool|g" \
-e "s|([^a-zA-Z0-9]\|^)KPopup|\1TDEPopup|g" \
-e "s|([^a-zA-Z0-9]\|^)KToggle|\1TDEToggle|g" \
-e "s|([^a-zA-Z0-9]\|^)KRadio|\1TDERadio|g" \
-e "s|([^a-zA-Z0-9]\|^)KSelect|\1TDESelect|g" \
-e "s|([^a-zA-Z0-9]\|^)KList|\1TDEList|g" \
-e "s|([^a-zA-Z0-9]\|^)KRecent|\1TDERecent|g" \
-e "s|([^a-zA-Z0-9]\|^)KFont|\1TDEFont|g" \
-e "s|([^a-zA-Z0-9]\|^)KPaste|\1TDEPaste|g" \
-e "s|([^a-zA-Z0-9]\|^)klaunch|\1tdelaunch|g" \
-e "s|([^a-zA-Z0-9]\|^)kshort|\1tdeshort|g" \
-e "s|([^a-zA-Z0-9]\|^)kstdaccel|\1tdestdaccel|g" \
-e "s|([^a-zA-Z0-9]\|^)kaccel|\1tdeaccel|g" \
-e "s|([^a-zA-Z0-9]\|^)kaction|\1tdeaction|g" \
-e "s|([^a-zA-Z0-9]\|^)kmain|\1tdemain|g" \
-e "s|([^a-zA-Z0-9]\|^)ktool|\1tdetool|g" \
-e "s|([^a-zA-Z0-9]\|^)kpopup|\1tdepopup|g" \
-e "s|([^a-zA-Z0-9]\|^)ktoggle|\1tdetoggle|g" \
-e "s|([^a-zA-Z0-9]\|^)kradio|\1tderadio|g" \
-e "s|([^a-zA-Z0-9]\|^)kselect|\1tdeselect|g" \
-e "s|([^a-zA-Z0-9]\|^)klist|\1tdelist|g" \
-e "s|([^a-zA-Z0-9]\|^)krecent|\1tderecent|g" \
-e "s|([^a-zA-Z0-9]\|^)kfont|\1tdefont|g" \
-e "s|([^a-zA-Z0-9]\|^)kpaste|\1tdepaste|g" \
-e "s|([^a-zA-Z0-9]\|^)kdisplay|\1tdedisplay|g" \
\
-e "s|([^a-zA-Z0-9]\|^)KStyle|\1TDEStyle|g" \
-e "s|([^a-zA-Z0-9]\|^)KIcon|\1TDEIcon|g" \
-e "s|([^a-zA-Z0-9]\|^)KZone|\1TDEZone|g" \
-e "s|([^a-zA-Z0-9]\|^)KCrash|\1TDECrash|g" \
-e "s|([^a-zA-Z0-9]\|^)KCmd|\1TDECmd|g" \
-e "s|([^a-zA-Z0-9]\|^)KAbout|\1TDEAbout|g" \
-e "s|([^a-zA-Z0-9]\|^)KComp|\1TDEComp|g" \
-e "s|([^a-zA-Z0-9]\|^)KGlobal|\1TDEGlobal|g" \
-e "s|([^a-zA-Z0-9]\|the\|^)KProcess|\1TDEProcess|g" \
-e "s|([^a-zA-Z0-9]\|^)KClipboard|\1TDEClipboard|g" \
-e "s|([^a-zA-Z0-9]\|^)Kwallet|\1TDEwallet|g" \
-e "s|([^a-zA-Z0-9]\|^)KWallet|\1TDEWallet|g" \
-e "s|([^a-zA-Z0-9]\|^)KWALLET|\1TDEWALLET|g" \
-e "s|([^a-zA-Z0-9]\|^)KDEsu|\1TDEsu|g" \
\
-e "s|([^a-zA-Z0-9]\|^)kcompletionbox|\1tdecompletionbox|g" \
\
-e "s|([^a-zA-Z0-9]\|^)kaboutapplication\.|\1tdeaboutapplication.|g" \
-e "s|([^a-zA-Z0-9]\|^)kaboutdata\.|\1tdeaboutdata.|g" \
-e "s|([^a-zA-Z0-9]\|^)kaboutdialog\.|\1tdeaboutdialog.|g" \
-e "s|([^a-zA-Z0-9]\|^)kaboutkde\.|\1tdeabouttde.|g" \
-e "s|([^a-zA-Z0-9]\|^)kcmdlineargs\.|\1tdecmdlineargs.|g" \
-e "s|([^a-zA-Z0-9]\|^)kapplication\.|\1tdeapplication.|g" \
-e "s|([^a-zA-Z0-9]\|^)kstyle\.|\1tdestyle.|g" \
-e "s|([^a-zA-Z0-9]\|^)drawKStylePrimitive|\1drawTDEStylePrimitive|g" \
\
-e "s|([^a-zA-Z0-9]\|^)kdiroperator\.|\1tdediroperator.|g" \
-e "s|([^a-zA-Z0-9]\|^)klocale\.|\1tdelocale.|g" \
-e "s|([^a-zA-Z0-9]\|^)kmessagebox\.|\1tdemessagebox.|g" \
-e "s|([^a-zA-Z0-9]\|^)ktempfile\.|\1tdetempfile.|g" \
-e "s|([^a-zA-Z0-9]\|^)kemailsettings\.|\1tdeemailsettings.|g" \
-e "s|([^a-zA-Z0-9]\|^)kglobal\.|\1tdeglobal.|g" \
-e "s|([^a-zA-Z0-9]\|^)kglobalsettings\.|\1tdeglobalsettings.|g" \
-e "s|([^a-zA-Z0-9]\|^)kmenubar\.|\1tdemenubar.|g" \
-e "s|([^a-zA-Z0-9]\|^)kprotocolmanager\.|\1tdeprotocolmanager.|g" \
-e "s|([^a-zA-Z0-9]\|^)kstartupinfo\.|\1tdestartupinfo.|g" \
-e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kabc|\1tdeabc|g" \
-e "s|([^a-zA-Z0-9]\|^)makekdewidgets|\1maketdewidgets|g" \
-e "s|([^a-zA-Z0-9]\|^)MAKEKDEWIDGETS|\1MAKETDEWIDGETS|g" \
-e "s|([^a-zA-Z0-9]\|^)kdewidgets|\1tdewidgets|g" \
-e "s|([^a-zA-Z0-9]\|^)Categories=Qt;KDE|\1Categories=Qt;TDE|g" \
-e "s|([^a-zA-Z0-9]\|^)X-KDE-|\1X-TDE-|g" \
\
\
-e "s|kde\.org/tdehotnewstuff|kde.org/khotnewstuff|g" \
-e "s|tdevelop\.org|kdevelop.org|g" \
-e "s|tdewebdev\.org|kdewebdev.org|g" \
-e "s|t(develop[a-z_\-]*@[tk]develop\.org)|k\1|g" \
-e "s|\<tdelistr|klistr|g" \
-e "s|kde toolbar widget|tde toolbar widget|g"
# Convert desktop files
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -print0 | \
xargs -r0 sed -i \
-e '/^Keyword/ { s,\,,;,g }' \
-e 's/^ServiceTypes=/X-TDE-ServiceTypes=/g' \
-e 's/^ServiceTypes\[\(.*\)\]=/X-TDE-ServiceTypes\[\1\]=/g' \
-e 's/^ExcludeServiceTypes=/X-TDE-ExcludeServiceTypes=/g' \
-e 's/^ExcludeServiceTypes\[\(.*\)\]=/X-TDE-ExcludeServiceTypes\[\1\]=/g' \
-e 's/^DocPath=/X-DocPath=/g' \
-e 's/^DocPath\[\(.*\)\]=/X-DocPath\[\1\]=/g' \
-e 's/^InitialPreference=/X-TDE-InitialPreference=/g' \
-e 's/^InitialPreference\[\(.*\)\]=/X-TDE-InitialPreference\[\1\]=/g'
# Rename files
find . -name "kio_*" | while read f; do mv "${f}" "${f/kio_/tdeio_}"; done
find . -name "kio-*" | while read f; do mv "${f}" "${f/kio-/tdeio-}"; done
find . -name "kio.*" | while read f; do mv "${f}" "${f/kio./tdeio.}"; done
find . -name "*.kdevelop" | while read f; do mv "${f}" "${f/.kdevelop/.tdevelop}"; done
find . -name "kdewidgets*" | while read f; do mv "${f}" "${f/kdewidgets/tdewidgets}"; done
# Update icon names (optional)
$SCRIPTPATH/convert_kde3_icon_names_to_xdg_standards

@ -1,20 +0,0 @@
#!/bin/bash
#
# (c) 2014-2015 Timothy Pearson
# All Rights Reserved
#
# WARNING
# This script is not complete!
# Hand editing will likely be required after running to ensure all icon names have been updated
# See http://trinity.etherpad.trinitydesktop.org/60 for a mapping of old KDE3 names to modern XDG names
THISSCRIPT=$(readlink -f $0)
if [[ ! -e "$THISSCRIPT" ]]; then
echo "Unable to find myself! Exiting..."
exit 1
fi
SCRIPTPATH=`dirname $THISSCRIPT`
$SCRIPTPATH/tde_mimetype_conversion
$SCRIPTPATH/tde_action_conversion
$SCRIPTPATH/tde_device_conversion

@ -1,154 +0,0 @@
#!/bin/bash
#
# (c) 2014 Timothy Pearson
# All Rights Reserved
#
# WARNING
# This script is not complete!
# Hand editing will likely be required after running to ensure all icon names have been updated
# See http://trinity.etherpad.trinitydesktop.org/60 for a mapping of old KDE3 names to modern XDG names
WORKDIR=$PWD
function rename_files {
echo '#!/bin/bash' > /tmp/rename_action_files
echo '' >> /tmp/rename_action_files
echo 'cd $1' >> /tmp/rename_action_files
echo '' >> /tmp/rename_action_files
echo 'BASEDIR=${PWD##*/}' >> /tmp/rename_action_files
echo "ORIGNAME='$1'" >> /tmp/rename_action_files
echo "NEWNAME='$2'" >> /tmp/rename_action_files
echo '' >> /tmp/rename_action_files
echo 'if [[ "$BASEDIR" == ".git" ]]; then' >> /tmp/rename_action_files
echo ' echo "Ignoring .git directory"' >> /tmp/rename_action_files
echo ' exit 0' >> /tmp/rename_action_files
echo 'fi' >> /tmp/rename_action_files
echo '' >> /tmp/rename_action_files
echo 'ls -d * | sed "s/\(.*\)action-$ORIGNAME\.png\(.*\)$/git mv \"&\" \"\1action-$NEWNAME\.png\2\"/" | grep mv | sh' >> /tmp/rename_action_files
echo 'ls -d * | sed "s/$ORIGNAME\.png\(.*\)$/git mv \"&\" \"$NEWNAME\.png\1\"/" | grep mv | sh' >> /tmp/rename_action_files
chmod 755 /tmp/rename_action_files
find ./ -type d -exec /tmp/rename_action_files {} \; &> /dev/null
rm /tmp/rename_action_files
}
function convert_files {
[ -d ~/tde-git/tde/main ] && \
cd ~/tde-git/tde/main
echo "==================================================="
echo "Converting $1..."
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "\(Icon\(Set\|\)( \?\)\"$1\"" | \
xargs -r0 sed -i "s/\(Icon\(Set\|\)( \?\)\"$1\"/\1\"$2\"/g"
find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "<iconset>\"$1\"" | \
xargs -r0 sed -i "s/<iconset>\"$1\"/<iconset>\"$2\"/g"
find ./ -type f -iregex ".*\.\(directory\|desktop\|protocol\)" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "Icon=$1" | \
xargs -r0 sed -i "s/Icon=$1/Icon=$2/g"
find ./ -type f -iname "*.rc" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "icon=\"$1\"" | \
xargs -r0 sed -i "s/icon=\"$1\"/icon=\"$2\"/g"
echo "==================================================="
echo "Renaming $1..."
[ -d $WORKDIR/tdelibs/pics ] && \
cd $WORKDIR/tdelibs/pics && \
rename_files $1 $2
[ -d $WORKDIR/tdeartwork/IconThemes ] && \
cd $WORKDIR/tdeartwork/IconThemes && \
rename_files $1 $2
[ -d $WORKDIR/tdeaccessibility/IconThemes ] && \
cd $WORKDIR/tdeaccessibility/IconThemes && \
rename_files $1 $2
cd $WORKDIR
echo "==================================================="
echo "Still found in files:"
echo "==================================================="
find . -not -iwholename '*.git*' | xargs grep "\"$1\"" -sl
echo "==================================================="
echo ""
}
convert_files "previous" "go-previous"
convert_files "next" "go-next"
convert_files "start" "go-first"
convert_files "finish" "go-last"
convert_files "stop" "process-stop"
convert_files "lock" "system-lock-screen"
convert_files "exit" "system-log-out"
convert_files "run" "system-run"
convert_files "up" "go-up"
convert_files "down" "go-down"
convert_files "top" "go-top"
convert_files "bottom" "go-bottom"
convert_files "undo" "edit-undo"
convert_files "redo" "edit-redo"
convert_files "find" "edit-find"
convert_files "revert" "document-revert"
convert_files "filenew" "document-new"
convert_files "fileopen" "document-open"
convert_files "fileprint" "document-print"
convert_files "filequickprint" "document-print-preview"
convert_files "filesave" "document-save"
convert_files "filesaveas" "document-save-as"
convert_files "fileclose" "window-close"
convert_files "editclear" "edit-clear"
convert_files "editcopy" "edit-copy"
convert_files "editcut" "edit-cut"
convert_files "editdelete" "edit-delete"
convert_files "editpaste" "edit-paste"
convert_files "folder_new" "folder-new"
convert_files "gohome" "go-home"
convert_files "mail_forward" "mail-forward"
convert_files "mail_new" "mail-message-new"
convert_files "mail_replyall" "mail-reply-all"
convert_files "mail_reply" "mail-reply-sender"
convert_files "mail_send" "mail-send"
convert_files "player_pause" "media-playback-pause"
convert_files "player_play" "media-playback-start"
convert_files "player_stop" "media-playback-stop"
convert_files "player_rew" "media-seek-backward"
convert_files "player_fwd" "media-seek-forward"
convert_files "player_start" "media-skip-backward"
convert_files "player_end" "media-skip-forward"
convert_files "rotate_ccw" "object-rotate-left"
convert_files "rotate_cw" "object-rotate-right"
convert_files "window_fullscreen" "view-fullscreen"
convert_files "window_nofullscreen" "view-restore"
convert_files "window_new" "window-new"
convert_files "viewmagfit" "zoom-fit-best"
convert_files "viewmag+" "zoom-in"
convert_files "viewmag1" "zoom-original"
convert_files "viewmag-" "zoom-out"
convert_files "unindent" "format-indent-less"
convert_files "indent" "format-indent-more"
convert_files "centrejust" "format-justify-center"
convert_files "leftjust" "format-justify-left"
convert_files "rightjust" "format-justify-right"
convert_files "text_left" "format-text-direction-ltr"
convert_files "text_right" "format-text-direction-rtl"
convert_files "text_bold" "format-text-bold"
convert_files "text_italic" "format-text-italic"
convert_files "text_under" "format-text-underline"
convert_files "text_strike" "format-text-strikethrough"
convert_files "spellcheck" "tools-check-spelling"
convert_files "package_development" "applications-development"
convert_files "package_games" "applications-games"
convert_files "package_graphics" "applications-graphics"
convert_files "package_network" "applications-internet"
convert_files "package_multimedia" "applications-multimedia"
convert_files "package_wordprocessing" "applications-office"
convert_files "edu_science" "applications-science"
convert_files "package_utilities" "applications-utilities"
convert_files "input_devices_settings" "preferences-desktop-peripherals"
convert_files "kcmsystem" "preferences-system"
convert_files "personal" "preferences-desktop-personal"
convert_files "looknfeel" "preferences-desktop"

@ -1,141 +0,0 @@
#!/bin/bash
#
# (c) 2015 Timothy Pearson
# All Rights Reserved
#
# WARNING
# This script is not complete!
# Hand editing will likely be required after running to ensure all icon names have been updated
# See http://trinity.etherpad.trinitydesktop.org/60 for a mapping of old KDE3 names to modern XDG names
WORKDIR=$PWD
function rename_files {
echo '#!/bin/bash' > /tmp/rename_device_files
echo '' >> /tmp/rename_device_files
echo 'cd $1' >> /tmp/rename_device_files
echo '' >> /tmp/rename_device_files
echo 'BASEDIR=${PWD##*/}' >> /tmp/rename_device_files
echo "ORIGNAME='$1'" >> /tmp/rename_device_files
echo "NEWNAME='$2'" >> /tmp/rename_device_files
echo '' >> /tmp/rename_device_files
echo 'if [[ "$BASEDIR" == ".git" ]]; then' >> /tmp/rename_device_files
echo ' echo "Ignoring .git directory"' >> /tmp/rename_device_files
echo ' exit 0' >> /tmp/rename_device_files
echo 'fi' >> /tmp/rename_device_files
echo '' >> /tmp/rename_device_files
echo 'ls -d * | sed "s/\(.*\)device-$ORIGNAME\.png\(.*\)$/git mv \"&\" \"\1device-$NEWNAME\.png\2\"/" | grep mv | sh' >> /tmp/rename_device_files
echo 'ls -d * | sed "s/$ORIGNAME\.png\(.*\)$/git mv \"&\" \"$NEWNAME\.png\1\"/" | grep mv | sh' >> /tmp/rename_device_files
chmod 755 /tmp/rename_device_files
find ./ -type d -exec /tmp/rename_device_files {} \; &> /dev/null
rm /tmp/rename_device_files
}
function convert_files {
[ -d ~/tde-git/tde/main ] && \
cd ~/tde-git/tde/main
echo "==================================================="
echo "Converting $1..."
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "\(Icon\(Set\|\)( \?\)\"$1\"" | \
xargs -r0 sed -i "s/\(Icon\(Set\|\)( \?\)\"$1\"/\1\"$2\"/g"
find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "<iconset>\"$1\"" | \
xargs -r0 sed -i "s/<iconset>\"$1\"/<iconset>\"$2\"/g"
find ./ -type f -iregex ".*\.\(directory\|desktop\|protocol\)" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "Icon=$1" | \
xargs -r0 sed -i "s/Icon=$1/Icon=$2/g"
find ./ -type f -iname "*.rc" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "icon=\"$1\"" | \
xargs -r0 sed -i "s/icon=\"$1\"/icon=\"$2\"/g"
echo "==================================================="
echo "Renaming $1..."
[ -d $WORKDIR/tdelibs/pics ] && \
cd $WORKDIR/tdelibs/pics && \
rename_files $1 $2
[ -d $WORKDIR/tdeartwork/IconThemes ] && \
cd $WORKDIR/tdeartwork/IconThemes && \
rename_files $1 $2
[ -d $WORKDIR/tdeaccessibility/IconThemes ] && \
cd $WORKDIR/tdeaccessibility/IconThemes && \
rename_files $1 $2
cd $WORKDIR
echo "==================================================="
echo "Still found in files:"
echo "==================================================="
find . -not -iwholename '*.git*' | xargs grep "\"$1\"" -sl
echo "==================================================="
echo ""
}
convert_files "system" "computer"
convert_files "hdd_unmount_encrypt" "drive-harddisk-encrypted"
convert_files "hdd_unmount_decrypt" "drive-harddisk-decrypted"
convert_files "hdd_mount_decrypt" "drive-harddisk-decrypted-mounted"
convert_files "hdd_unmount" "drive-harddisk"
convert_files "hdd_mount" "drive-harddisk-mounted"
convert_files "keyboard" "input-keyboard"
convert_files "mouse" "input-mouse"
convert_files "tablet" "input-tablet"
convert_files "sd_mmc_unmount_encrypt" "media-flash-sd_mmc-encrypted"
convert_files "sd_mmc_unmount_decrypt" "media-flash-sd_mmc-decrypted"
convert_files "sd_mmc_mount_decrypt" "media-flash-sd_mmc-decrypted-mounted"
convert_files "sd_mmc_unmount" "media-flash-sd_mmc"
convert_files "sd_mmc_mount" "media-flash-sd_mmc-mounted"
convert_files "usbpendrive_unmount_encrypt" "media-flash-usb-encrypted"
convert_files "usbpendrive_unmount_decrypt" "media-flash-usb-decrypted"
convert_files "usbpendrive_mount_decrypt" "media-flash-usb-decrypted-mounted"
convert_files "usbpendrive_unmount" "media-flash-usb"
convert_files "usbpendrive_mount" "media-flash-usb-mounted"
convert_files "smart_media_unmount_encrypt" "media-flash-smart_media-encrypted"
convert_files "smart_media_unmount_decrypt" "media-flash-smart_media-decrypted"
convert_files "smart_media_mount_decrypt" "media-flash-smart_media-decrypted-mounted"
convert_files "smart_media_unmount" "media-flash-smart_media"
convert_files "smart_media_mount" "media-flash-smart_media-mounted"
convert_files "memory_stick_unmount_encrypt" "media-flash-memory_stick-encrypted"
convert_files "memory_stick_unmount_decrypt" "media-flash-memory_stick-decrypted"
convert_files "memory_stick_mount_decrypt" "media-flash-memory_stick-decrypted-mounted"
convert_files "memory_stick_unmount" "media-flash-memory_stick"
convert_files "memory_stick_mount" "media-flash-memory_stick-mounted"
convert_files "compact_flash_unmount_encrypt" "media-flash-compact_flash-encrypted"
convert_files "compact_flash_unmount_decrypt" "media-flash-compact_flash-decrypted"
convert_files "compact_flash_mount_decrypt" "media-flash-compact_flash-decrypted-mounted"
convert_files "compact_flash_unmount" "media-flash-compact_flash"
convert_files "compact_flash_mount" "media-flash-compact_flash-mounted"
convert_files "3floppy_unmount" "media-floppy-3_5"
convert_files "3floppy_mount" "media-floppy-3_5-mounted"
convert_files "5floppy_unmount" "media-floppy-5_14"
convert_files "5floppy_mount" "media-floppy-5_14-mounted"
convert_files "zip_unmount" "media-floppy-zip"
convert_files "zip_mount" "media-floppy-zip-mounted"
convert_files "cdrom_unmount_encrypt" "media-optical-cdrom-encrypted"
convert_files "cdrom_unmount_decrypt" "media-optical-cdrom-decrypted"
convert_files "cdrom_mount_decrypt" "media-optical-cdrom-decrypted-mounted"
convert_files "cdrom_unmount" "media-optical-cdrom"
convert_files "cdrom_mount" "media-optical-cdrom-mounted"
convert_files "cdwriter_unmount_encrypt" "media-optical-cdwriter-encrypted"
convert_files "cdwriter_unmount_decrypt" "media-optical-cdwriter-decrypted"
convert_files "cdwriter_mount_decrypt" "media-optical-cdwriter-decrypted-mounted"
convert_files "cdwriter_unmount" "media-optical-cdwriter"
convert_files "cdwriter_mount" "media-optical-cdwriter-mounted"
convert_files "dvd_unmount_encrypt" "media-optical-dvd-encrypted"
convert_files "dvd_unmount_decrypt" "media-optical-dvd-decrypted"
convert_files "dvd_mount_decrypt" "media-optical-dvd-decrypted-mounted"
convert_files "dvd_unmount" "media-optical-dvd"
convert_files "dvd_mount" "media-optical-dvd-mounted"
convert_files "cdaudio_unmount" "media-optical-cdaudio"
convert_files "cdaudio_mount" "media-optical-cdaudio-mounted"
convert_files "tape_unmount" "media-tape"
convert_files "tape_mount" "media-tape-mounted"
convert_files "ipod_unmount" "multimedia-player"
convert_files "ipod_mount" "multimedia-player-mounted"
convert_files "printer1" "printer"

@ -1,169 +0,0 @@
#!/bin/bash
#
# (c) 2014 Timothy Pearson
# All Rights Reserved
#
# WARNING
# This script is not complete!
# Hand editing will likely be required after running to ensure all icon names have been updated
# See http://trinity.etherpad.trinitydesktop.org/60 for a mapping of old KDE3 names to modern XDG names
WORKDIR=$PWD
function rename_files {
echo '#!/bin/bash' > /tmp/rename_mime_files
echo '' >> /tmp/rename_mime_files
echo 'cd $1' >> /tmp/rename_mime_files
echo '' >> /tmp/rename_mime_files
echo 'BASEDIR=${PWD##*/}' >> /tmp/rename_mime_files
echo "ORIGNAME='$1'" >> /tmp/rename_mime_files
echo "NEWNAME='$2'" >> /tmp/rename_mime_files
echo '' >> /tmp/rename_mime_files
echo 'if [[ "$BASEDIR" == ".git" ]]; then' >> /tmp/rename_mime_files
echo ' echo "Ignoring .git directory"' >> /tmp/rename_mime_files
echo ' exit 0' >> /tmp/rename_mime_files
echo 'fi' >> /tmp/rename_mime_files
echo '' >> /tmp/rename_mime_files
echo 'ls -d * | sed "s/\(.*\)mime-$ORIGNAME\.png\(.*\)$/git mv \"&\" \"\1mime-$NEWNAME\.png\2\"/" | grep mv | sh' >> /tmp/rename_mime_files
echo 'ls -d * | sed "s/$ORIGNAME\.png\(.*\)$/git mv \"&\" \"$NEWNAME\.png\1\"/" | grep mv | sh' >> /tmp/rename_mime_files
chmod 755 /tmp/rename_mime_files
find ./ -type d -exec /tmp/rename_mime_files {} \; &> /dev/null
rm /tmp/rename_mime_files
}
function convert_files {
[ -d ~/tde-git/tde/main ] && \
cd ~/tde-git/tde/main
echo "==================================================="
echo "Converting $1..."
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "\(Icon\(Set\|\)( \?\)\"$1\"" | \
xargs -r0 sed -i "s/\(Icon\(Set\|\)( \?\)\"$1\"/\1\"$2\"/g"
find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "<iconset>\"$1\"" | \
xargs -r0 sed -i "s/<iconset>\"$1\"/<iconset>\"$2\"/g"
find ./ -type f -iregex ".*\.\(directory\|desktop\|protocol\)" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "Icon=$1" | \
xargs -r0 sed -i "s/Icon=$1/Icon=$2/g"
find ./ -type f -iname "*.rc" -not -iwholename '*.git*' -print0 | \
xargs -r0 grep -ZIl "icon=\"$1\"" | \
xargs -r0 sed -i "s/icon=\"$1\"/icon=\"$2\"/g"
echo "==================================================="
echo "Renaming $1..."
[ -d $WORKDIR/tdelibs/pics ] && \
cd $WORKDIR/tdelibs/pics && \
rename_files $1 $2
[ -d $WORKDIR/tdeartwork/IconThemes ] && \
cd $WORKDIR/tdeartwork/IconThemes && \
rename_files $1 $2
[ -d $WORKDIR/tdeaccessibility/IconThemes ] && \
cd $WORKDIR/tdeaccessibility/IconThemes && \
rename_files $1 $2
cd $WORKDIR
echo "==================================================="
echo "Still found in files:"
echo "==================================================="
find . -not -iwholename '*.git*' | xargs grep "\"$1\"" -sl
echo "==================================================="
echo ""
}
convert_files "sound" "audio-x-generic"
convert_files "font" "font-x-generic"
convert_files "image" "image-x-generic"
convert_files "html" "text-html"
convert_files "document" "text-x-generic"
convert_files "document2" "text-x-generic-template"
convert_files "shellscript" "text-x-script"
convert_files "video" "video-x-generic"
convert_files "vcard" "x-office-address-book"
convert_files "vcalendar" "x-office-calendar"
convert_files "kword_kwd" "x-office-document"
convert_files "applix" "application-x-applix-word"
convert_files "ascii" "text-vnd\.tde\.ascii"
convert_files "binary" "application-octet-stream"
convert_files "bt" "application-x-bittorrent"
convert_files "cdimage" "application-x-cd-image"
convert_files "cdr" "application-x-cdr"
convert_files "cdtrack" "application-x-cda"
convert_files "colorscm" "application-x-kcsrc"
convert_files "core" "application-x-core"
convert_files "database" "application-vnd\.oasis\.opendocument\.database"
convert_files "deb" "application-x-deb"
convert_files "drawing" "application-vnd\.oasis\.opendocument\.graphics"
convert_files "dvi" "application-x-lyx"
convert_files "empty" "application-x-zerosize"
convert_files "exec" "application-x-executable"
convert_files "exec_wine" "application-x-mswinurl"
convert_files "file_locked" "application-vnd\.tde\.file\.locked"
convert_files "file_temporary" "application-vnd\.tde\.file\.temporary"
convert_files "font_bitmap" "application-x-font-snf"
convert_files "font_truetype" "application-x-font-ttf"
convert_files "font_type1" "application-x-font-type1"
convert_files "gettext" "application-x-gettext"
convert_files "gf" "application-x-tex-gf"
convert_files "info" "application-vnd\.tde\.info"
convert_files "karbon_karbon" "application-x-karbon"
convert_files "kchart_chrt" "application-x-kchart"
convert_files "kexi_kexi" "application-x-kexi"
convert_files "kformula_kfo" "application-x-kformula"
convert_files "kivio_flw" "application-x-kivio"
convert_files "kpresenter_kpr" "application-x-kpresenter"
convert_files "krita_kra" "application-x-krita"
convert_files "kspread_ksp" "application-x-kspread"
convert_files "kugar_kud" "application-x-kugar"
convert_files "log" "text-x-log"
convert_files "make" "text-x-makefile"
convert_files "man" "application-x-troff-man"
convert_files "metafont" "application-x-metafont"
convert_files "midi" "audio-midi"
convert_files "misc" "application-vnd\.tde\.misc"
convert_files "netscape_doc" "application-x-netscape"
convert_files "pdf" "application-pdf"
convert_files "pk" "application-x-tex-pk"
convert_files "postscript" "application-postscript"
convert_files "presentation" "application-vnd\.oasis\.opendocument\.presentation"
convert_files "quicktime" "video-x-quicktime"
convert_files "readme" "text-x-readme"
convert_files "recycled" "application-x-trash"
convert_files "resource" "application-vnd\.tde\.resource"
convert_files "rpm" "application-x-rpm"
convert_files "rtf" "text-rtf"
convert_files "soffice" "application-x-soffice"
convert_files "source_c" "text-x-csrc"
convert_files "source_cpp" "text-x-c++src"
convert_files "source_f" "text-x-fortran"
convert_files "source_h" "text-x-hsrc"
convert_files "source_java" "text-x-java"
convert_files "source_j" "text-x-jsrc"
convert_files "source_l" "text-x-lsrc"
convert_files "source_moc" "text-x-mocsrc"
convert_files "source_o" "text-x-osrc"
convert_files "source_php" "text-x-php"
convert_files "source_pl" "text-x-perl"
convert_files "source" "text-x-src"
convert_files "source_p" "text-x-psrc"
convert_files "source_py" "text-x-python"
convert_files "source_s" "text-x-asm"
convert_files "source_y" "text-x-ysrc"
convert_files "spreadsheet" "application-vnd\.oasis\.opendocument\.spreadsheet"
convert_files "tar" "application-x-tar"
convert_files "tdemultiple" "application-vnd\.tde\.tdemultiple"
convert_files "template_source" "application-vnd\.tde\.template_source"
convert_files "tex" "text-x-tex"
convert_files "tgz" "application-x-tarz"
convert_files "txt2" "application-vnd\.tde\.text\.alt"
convert_files "txt" "text-plain"
convert_files "vectorgfx" "image-svg+xml"
convert_files "widget_doc" "application-x-designer"
convert_files "wordprocessing" "application-vnd\.oasis\.opendocument\.text"
convert_files "zip" "application-vnd\.tde\.overlay\.zip"

@ -1,2 +0,0 @@
Run create_tqt3_from_qt3 within this directory to create a version of Qt3 that uses TQ* objects
This is somewhat experimental so please be careful!

@ -1,710 +0,0 @@
#!/bin/bash
find ./ -type f -iname "*.c*" -o -iname "*.h*" -o -iname "*.ui*" -o -name "*.kcfg" -o -name "*.ypp" -not -iwholename '*.git*' |\
tr "\n" "\0" |\
xargs -r0 sed -i \
-e 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' \
-e 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' \
-e 's/Qt/TQt/g' \
-e 's/TTQ/TQ/g' \
-e 's/TTQ/TQ/g' \
-e 's/TTQ/TQ/g' \
-e 's/TTQ/TQ/g'
# Move the library
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \
-e 's/qt-mt/tqt-mt/g' \
-e 's/qui/tqui/g'
# Back out changes we did not want to make
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \
-e 's/TQ_OBJECT/Q_OBJECT/g' \
-e 's/TQT_/QT_/g' \
-e 's/TQCStringList/QCStringList/g' \
-e 's/TQMAKE/QMAKE/g' \
-e 's/TQTDIR/QTDIR/g' \
-e 's/OBLITQUE/OBLIQUE/g' \
-e 's/ATQUA/AQUA/g' \
\
-e 's/QUType_Q/QUType_TQ/g' \
-e 's/\([ (]\)Q\#\#/\1TQ\#\#/g' \
-e 's/STQL/SQL/g' \
\
-e 's/keyCodeTQt/keyCodeQt/g' \
-e 's/kontqui/konqui/g' \
-e 's/tquiv/quiv/g' \
\
-e 's/\([^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)tquit/\1quit/g' \
-e 's/^tquit/quit/g' \
\
-e 's/ACTQUIRE/ACQUIRE/g' \
-e 's/Actquire/Acquire/g' \
-e 's/actquire/acquire/g' \
-e 's/LITQUID/LIQUID/g' \
-e 's/Litquid/Liquid/g' \
-e 's/litquid/liquid/g' \
-e 's/OPATQUE/OPAQUE/g' \
-e 's/Opatque/Opaque/g' \
-e 's/opatque/opaque/g' \
-e 's/RETQUIRE/REQUIRE/g' \
-e 's/Retquire/Require/g' \
-e 's/retquire/require/g'
# Apply changes that should have been made but were not
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i 's/aboutQt/aboutTQt/g'
# Back out linear alphabet string changes
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \
-e 's/MNOPTQR/MNOPQR/g' \
\
-e 's/QT_VERSION/TQT_VERSION/g' \
-e 's/QT_BUILD_KEY/TQT_BUILD_KEY/g' \
-e 's/Q_PACKED/TQ_PACKED/g' \
-e 's/Q_INT64_C/TQ_INT64_C/g' \
-e 's/Q_UINT64_C/TQ_UINT64_C/g' \
-e 's/Q_CHECK_PTR/TQ_CHECK_PTR/g' \
-e 's/Q_DISABLE_COPY/TQ_DISABLE_COPY/g' \
-e 's/QT_MODULE_/TQT_MODULE_/g' \
-e 's/TTQT_MODULE_/TQT_MODULE_/g' \
-e 's/QT_TR_FUNCTIONS/TQT_TR_FUNCTIONS/g' \
-e 's/RGB_MASK/TQT_RGB_MASK/g' \
\
-e 's/\([-()+/{*},.>!:=&[\t ]\)qRound/\1tqRound/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSwap/\1tqSwap/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qstrlen/\1tqstrlen/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qstrncmp/\1tqstrncmp/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qUncompress/\1tqUncompress/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qCopy/\1tqCopy/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qCopyBackward/\1tqCopyBackward/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qEqual/\1tqEqual/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qFill/\1tqFill/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qFind/\1tqFind/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qCount/\1tqCount/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qHash/\1tqHash/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qAppName/\1tqAppName/g' \
\
-e 's/^qRound/tqRound/g' \
-e 's/^qSwap/tqSwap/g' \
-e 's/^qstrlen/tqstrlen/g' \
-e 's/^qstrncmp/tqstrncmp/g' \
-e 's/^qUncompress/tqUncompress/g' \
-e 's/^qCopy/tqCopy/g' \
-e 's/^qCopyBackward/tqCopyBackward/g' \
-e 's/^qEqual/tqEqual/g' \
-e 's/^qFill/tqFill/g' \
-e 's/^qFind/tqFind/g' \
-e 's/^qCount/tqCount/g' \
-e 's/^qHash/tqHash/g' \
-e 's/^qAppName/tqAppName/g' \
\
-e 's/\([-()+/{*},.>!:=&[\t ]\)qRed/\1tqRed/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qGreen/\1tqGreen/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qBlue/\1tqBlue/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qAlpha/\1tqAlpha/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qRgb/\1tqRgb/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qGray/\1tqGray/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qApp/\1tqApp/g' \
\
-e 's/^qRed/tqRed/g' \
-e 's/^qGreen/tqGreen/g' \
-e 's/^qBlue/tqBlue/g' \
-e 's/^qAlpha/tqAlpha/g' \
-e 's/^qRgb/tqRgb/g' \
-e 's/^qGray/tqGray/g' \
-e 's/^qApp/tqApp/g' \
\
-e 's/\([-()+/{*},.>!:=&[\t ]\)qAddPostRoutine/\1tqAddPostRoutine/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qWarning/\1tqWarning/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSharedBuild/\1tqSharedBuild/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qNetworkProtocolRegister/\1tqNetworkProtocolRegister/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qDebug/\1tqDebug/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qCompress/\1tqCompress/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qFatal/\1tqFatal/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSqlDriverExtDict/\1tqSqlDriverExtDict/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSqlOpenExtDict/\1tqSqlOpenExtDict/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qInitNetworkProtocols/\1tqInitNetworkProtocols/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSuppressObsoleteWarnings/\1tqSuppressObsoleteWarnings/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qChecksum/\1tqChecksum/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qRemovePostRoutine/\1tqRemovePostRoutine/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qInstallPath/\1tqInstallPath/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qObsolete/\1tqObsolete/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qVersion/\1tqVersion/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSystemWarning/\1tqSystemWarning/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qSysInfo/\1tqSysInfo/g' \
\
-e 's/^qAddPostRoutine/tqAddPostRoutine/g' \
-e 's/^qWarning/tqWarning/g' \
-e 's/^qSharedBuild/tqSharedBuild/g' \
-e 's/^qNetworkProtocolRegister/tqNetworkProtocolRegister/g' \
-e 's/^qDebug/tqDebug/g' \
-e 's/^qCompress/tqCompress/g' \
-e 's/^qFatal/tqFatal/g' \
-e 's/^qSqlDriverExtDict/tqSqlDriverExtDict/g' \
-e 's/^qSqlOpenExtDict/tqSqlOpenExtDict/g' \
-e 's/^qInitNetworkProtocols/tqInitNetworkProtocols/g' \
-e 's/^qSuppressObsoleteWarnings/tqSuppressObsoleteWarnings/g' \
-e 's/^qChecksum/tqChecksum/g' \
-e 's/^qRemovePostRoutine/tqRemovePostRoutine/g' \
-e 's/^qInstallPath/tqInstallPath/g' \
-e 's/^qObsolete/tqObsolete/g' \
-e 's/^qVersion/tqVersion/g' \
-e 's/^qSystemWarning/tqSystemWarning/g' \
-e 's/^qSysInfo/tqSysInfo/g' \
\
-e 's/\([-()+/{*},.>!:=&[\t ]\)qmemmove/\1tqmemmove/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qstrncpy/\1tqstrncpy/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qstrdup/\1tqstrdup/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qstrnicmp/\1tqstrnicmp/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qstricmp/\1tqstricmp/g' \
\
-e 's/^qmemmove/tqmemmove/g' \
-e 's/^qstrncpy/tqstrncpy/g' \
-e 's/^qstrdup/tqstrdup/g' \
-e 's/^qstrnicmp/tqstrnicmp/g' \
-e 's/^qstricmp/tqstricmp/g' \
\
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_get_application_thread_id/\1tqt_get_application_thread_id/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_x_user_time/\1tqt_x_user_time/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_xget_temp_gc/\1tqt_xget_temp_gc/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_has_xft/\1tqt_has_xft/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_modal_state/\1tqt_modal_state/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_check_pointer/\1tqt_check_pointer/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_preliminary_signal_spy/\1tqt_preliminary_signal_spy/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_wm_take_focus/\1tqt_wm_take_focus/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_global_mutexpool/\1tqt_global_mutexpool/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_xdisplay/\1tqt_xdisplay/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_resolve_symlinks/\1tqt_resolve_symlinks/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_qclipboard_bailout_hack/\1tqt_qclipboard_bailout_hack/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_x_time/\1tqt_x_time/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_wm_delete_window/\1tqt_wm_delete_window/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_qheader_label_return_null_strings/\1tqt_qheader_label_return_null_strings/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_xscreen/\1tqt_xscreen/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_setAccelAutoShortcuts/\1tqt_setAccelAutoShortcuts/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_sm_client_id/\1tqt_sm_client_id/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_set_table_clipper_enabled/\1tqt_set_table_clipper_enabled/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_hebrew_keyboard_hack/\1tqt_hebrew_keyboard_hack/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_use_native_dialogs/\1tqt_use_native_dialogs/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_generate_epsf/\1tqt_generate_epsf/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_xget_readonly_gc/\1tqt_xget_readonly_gc/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_use_xrender/\1tqt_use_xrender/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_set_x11_event_filter/\1tqt_set_x11_event_filter/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_xrootwin/\1tqt_xrootwin/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_wm_protocols/\1tqt_wm_protocols/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_ftp_filename_codec/\1tqt_ftp_filename_codec/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_window_role/\1tqt_window_role/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_tab_all_widgets/\1tqt_tab_all_widgets/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_wm_state/\1tqt_wm_state/g' \
\
-e 's/^qt_get_application_thread_id/tqt_get_application_thread_id/g' \
-e 's/^qt_x_user_time/tqt_x_user_time/g' \
-e 's/^qt_xget_temp_gc/tqt_xget_temp_gc/g' \
-e 's/^qt_has_xft/tqt_has_xft/g' \
-e 's/^qt_modal_state/tqt_modal_state/g' \
-e 's/^qt_check_pointer/tqt_check_pointer/g' \
-e 's/^qt_preliminary_signal_spy/tqt_preliminary_signal_spy/g' \
-e 's/^qt_wm_take_focus/tqt_wm_take_focus/g' \
-e 's/^qt_global_mutexpool/tqt_global_mutexpool/g' \
-e 's/^qt_xdisplay/tqt_xdisplay/g' \
-e 's/^qt_resolve_symlinks/tqt_resolve_symlinks/g' \
-e 's/^qt_qclipboard_bailout_hack/tqt_qclipboard_bailout_hack/g' \
-e 's/^qt_x_time/tqt_x_time/g' \
-e 's/^qt_wm_delete_window/tqt_wm_delete_window/g' \
-e 's/^qt_qheader_label_return_null_strings/tqt_qheader_label_return_null_strings/g' \
-e 's/^qt_xscreen/tqt_xscreen/g' \
-e 's/^qt_setAccelAutoShortcuts/tqt_setAccelAutoShortcuts/g' \
-e 's/^qt_sm_client_id/tqt_sm_client_id/g' \
-e 's/^qt_set_table_clipper_enabled/tqt_set_table_clipper_enabled/g' \
-e 's/^qt_hebrew_keyboard_hack/tqt_hebrew_keyboard_hack/g' \
-e 's/^qt_use_native_dialogs/tqt_use_native_dialogs/g' \
-e 's/^qt_generate_epsf/tqt_generate_epsf/g' \
-e 's/^qt_xget_readonly_gc/tqt_xget_readonly_gc/g' \
-e 's/^qt_use_xrender/tqt_use_xrender/g' \
-e 's/^qt_set_x11_event_filter/tqt_set_x11_event_filter/g' \
-e 's/^qt_xrootwin/tqt_xrootwin/g' \
-e 's/^qt_wm_protocols/tqt_wm_protocols/g' \
-e 's/^qt_ftp_filename_codec/tqt_ftp_filename_codec/g' \
-e 's/^qt_window_role/tqt_window_role/g' \
-e 's/^qt_tab_all_widgets/tqt_tab_all_widgets/g' \
-e 's/^qt_wm_state/tqt_wm_state/g' \
\
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_init/\1tqt_init/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_cleanup/\1tqt_cleanup/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_is_gui_used/\1tqt_is_gui_used/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_appType/\1tqt_appType/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_application_thread_id/\1tqt_application_thread_id/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_setMaxWindowRect/\1tqt_setMaxWindowRect/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_desktopWidget/\1tqt_desktopWidget/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_clipboard/\1tqt_clipboard/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_modal_stack/\1tqt_modal_stack/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_std_pal/\1tqt_std_pal/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_create_std_palette/\1tqt_create_std_palette/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_fix_tooltips/\1tqt_fix_tooltips/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_explicit_app_style/\1tqt_explicit_app_style/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_app_has_font/\1tqt_app_has_font/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_maxWindowRect/\1tqt_maxWindowRect/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_mutex/\1tqt_mutex/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_try_modal/\1tqt_try_modal/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_enter_modal/\1tqt_enter_modal/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_inheritedBy/\1tqt_inheritedBy/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_leave_modal/\1tqt_leave_modal/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_tryAccelEvent/\1tqt_tryAccelEvent/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_find_obj_child/\1tqt_find_obj_child/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_tryModalHelper/\1tqt_tryModalHelper/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_ucm_initialize/\1tqt_ucm_initialize/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_tryComposeUnicode/\1tqt_tryComposeUnicode/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_dispatchAccelEvent/\1tqt_dispatchAccelEvent/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_dispatchEnterLeave/\1tqt_dispatchEnterLeave/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_x11_enforce_cursor/\1tqt_x11_enforce_cursor/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_wait_for_window_manager/\1tqt_wait_for_window_manager/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_property/\1tqt_property/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_static_property/\1tqt_static_property/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_cast/\1tqt_cast/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_emit/\1tqt_emit/g' \
-e 's/\([-()+/{*},.>!:=&[\t ]\)qt_invoke/\1tqt_invoke/g' \
\
-e 's/^qt_init/tqt_init/g' \
-e 's/^qt_cleanup/tqt_cleanup/g' \
-e 's/^qt_is_gui_used/tqt_is_gui_used/g' \
-e 's/^qt_appType/tqt_appType/g' \
-e 's/^qt_application_thread_id/tqt_application_thread_id/g' \
-e 's/^qt_setMaxWindowRect/tqt_setMaxWindowRect/g' \
-e 's/^qt_desktopWidget/tqt_desktopWidget/g' \
-e 's/^qt_clipboard/tqt_clipboard/g' \
-e 's/^qt_modal_stack/tqt_modal_stack/g' \
-e 's/^qt_std_pal/tqt_std_pal/g' \
-e 's/^qt_create_std_palette/tqt_create_std_palette/g' \
-e 's/^qt_fix_tooltips/tqt_fix_tooltips/g' \
-e 's/^qt_explicit_app_style/tqt_explicit_app_style/g' \
-e 's/^qt_app_has_font/tqt_app_has_font/g' \
-e 's/^qt_maxWindowRect/tqt_maxWindowRect/g' \
-e 's/^qt_mutex/tqt_mutex/g' \
-e 's/^qt_try_modal/tqt_try_modal/g' \
-e 's/^qt_enter_modal/tqt_enter_modal/g' \
-e 's/^qt_inheritedBy/tqt_inheritedBy/g' \
-e 's/^qt_leave_modal/tqt_leave_modal/g' \
-e 's/^qt_tryAccelEvent/tqt_tryAccelEvent/g' \
-e 's/^qt_find_obj_child/tqt_find_obj_child/g' \
-e 's/^qt_tryModalHelper/tqt_tryModalHelper/g' \
-e 's/^qt_ucm_initialize/tqt_ucm_initialize/g' \
-e 's/^qt_tryComposeUnicode/tqt_tryComposeUnicode/g' \
-e 's/^qt_dispatchAccelEvent/tqt_dispatchAccelEvent/g' \
-e 's/^qt_dispatchEnterLeave/tqt_dispatchEnterLeave/g' \
-e 's/^qt_x11_enforce_cursor/tqt_x11_enforce_cursor/g' \
-e 's/^qt_wait_for_window_manager/tqt_wait_for_window_manager/g' \
-e 's/^qt_property/tqt_property/g' \
-e 's/^qt_static_property/tqt_static_property/g' \
-e 's/^qt_cast/tqt_cast/g' \
-e 's/^qt_emit/tqt_emit/g' \
-e 's/^qt_invoke/tqt_invoke/g' \
\
-e 's/Q_INT8/TQ_INT8/g' \
-e 's/Q_INT16/TQ_INT16/g' \
-e 's/Q_INT32/TQ_INT32/g' \
-e 's/Q_INT64/TQ_INT64/g' \
-e 's/Q_UINT8/TQ_UINT8/g' \
-e 's/Q_UINT16/TQ_UINT16/g' \
-e 's/Q_UINT32/TQ_UINT32/g' \
-e 's/Q_UINT64/TQ_UINT64/g' \
-e 's/Q_LONG/TQ_LONG/g' \
-e 's/Q_LLONG/TQ_LLONG/g' \
-e 's/Q_ULONG/TQ_ULONG/g' \
-e 's/Q_ULLONG/TQ_ULLONG/g' \
\
-e 's/TTQ_INT/TQ_INT/g' \
-e 's/TTQ_UINT/TQ_UINT/g' \
\
-e 's/Q_PROPERTY/TQ_PROPERTY/g' \
-e 's/Q_ENUMS/TQ_ENUMS/g' \
-e 's/Q_SETS/TQ_SETS/g' \
-e 's/Q_OVERRIDE/TQ_OVERRIDE/g' \
-e 's/Q_CLASSINFO/TQ_CLASSINFO/g' \
\
-e 's/QT_POINTER_SIZE/TQT_POINTER_SIZE/g' \
-e 's/\([^T]\)Qt3/\1TQt3/g' \
-e 's/qt_main_thread/tqt_main_thread/g' \
\
-e 's/RETQUEST/REQUEST/g' \
-e 's/Actquire/Acquire/g' \
-e 's/CONSETQUENTIAL/CONSEQUENTIAL/g' \
-e 's/ETQUAL/EQUAL/g' \
-e 's/ETQUATION/EQUATION/g' \
-e 's/ETQUIV/EQUIV/g' \
-e 's/Etquip/Equip/g' \
-e 's/Intquire/Inquire/g' \
-e 's/Martquis/Marquis/g' \
-e 's/PRODTQUOT/PRODQUOT/g' \
-e 's/Retquire/Require/g' \
-e 's/Retquiring/Requiring/g' \
-e 's/SETQUENCE/SEQUENCE/g' \
-e 's/SETQUENT/SEQUENT/g' \
-e 's/STQUARE/SQUARE/g' \
-e 's/TQUALITY/QUALITY/g' \
-e 's/TQUARTER/QUARTER/g' \
-e 's/TQUERY/QUERY/g' \
-e 's/TQUESTION/QUESTION/g' \
-e 's/TQUEUE/QUEUE/g' \
-e 's/TQUICK/QUICK/g' \
-e 's/TQUIT/QUIT/g' \
-e 's/TQUOTATION/QUOTATION/g' \
-e 's/UNITQUE/UNIQUE/g' \
-e 's/actquire/acquire/g' \
-e 's/actquiring/acquiring/g' \
-e 's/actquisition/acquisition/g' \
-e 's/etquip/equip/g' \
-e 's/intquire/inquire/g' \
-e 's/intquiries/inquiries/g' \
-e 's/martquis/marquis/g' \
-e 's/relintquish/relinquish/g' \
-e 's/retquier/requier/g' \
-e 's/retquire/require/g' \
-e 's/retquiring/requiring/g' \
-e 's/retquisite/requisite/g' \
-e 's/stquirt/squirt/g' \
-e 's/tquick/quick/g' \
-e 's/tquiet/quiet/g' \
-e 's/tquirk/quirk/g' \
-e 's/tquit/quit/g' \
-e 's/tquiz/quiz/g' \
-e 's/ubitquitous/ubiquitous/g' \
-e 's/unitquifying/uniquifying/g'
# Headers
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \
-e 's/q1xcompatibility\.h/ntq1xcompatibility\.h/g' \
-e 's/qabstractlayout\.h/ntqabstractlayout\.h/g' \
-e 's/qaccel\.h/ntqaccel\.h/g' \
-e 's/qaccessible\.h/ntqaccessible\.h/g' \
-e 's/qaction\.h/ntqaction\.h/g' \
-e 's/qapp\.h/ntqapp\.h/g' \
-e 's/qapplication\.h/ntqapplication\.h/g' \
-e 's/qarray\.h/ntqarray\.h/g' \
-e 's/qasciicache\.h/ntqasciicache\.h/g' \
-e 's/qasciidict\.h/ntqasciidict\.h/g' \
-e 's/qassistantclient\.h/ntqassistantclient\.h/g' \
-e 's/qasyncimageio\.h/ntqasyncimageio\.h/g' \
-e 's/qasyncio\.h/ntqasyncio\.h/g' \
-e 's/qbig5codec\.h/ntqbig5codec\.h/g' \
-e 's/qbitarray\.h/ntqbitarray\.h/g' \
-e 's/qbitarry\.h/ntqbitarry\.h/g' \
-e 's/qbitmap\.h/ntqbitmap\.h/g' \
-e 's/qbrush\.h/ntqbrush\.h/g' \
-e 's/qbttngrp\.h/ntqbttngrp\.h/g' \
-e 's/qbuffer\.h/ntqbuffer\.h/g' \
-e 's/qbuttongroup\.h/ntqbuttongroup\.h/g' \
-e 's/qbutton\.h/ntqbutton\.h/g' \
-e 's/qcache\.h/ntqcache\.h/g' \
-e 's/qcanvas\.h/ntqcanvas\.h/g' \
-e 's/qcdestyle\.h/ntqcdestyle\.h/g' \
-e 's/qcheckbox\.h/ntqcheckbox\.h/g' \
-e 's/qchkbox\.h/ntqchkbox\.h/g' \
-e 's/qcleanuphandler\.h/ntqcleanuphandler\.h/g' \
-e 's/qclipboard\.h/ntqclipboard\.h/g' \
-e 's/qclipbrd\.h/ntqclipbrd\.h/g' \
-e 's/qcollect\.h/ntqcollect\.h/g' \
-e 's/qcollection\.h/ntqcollection\.h/g' \
-e 's/qcolordialog\.h/ntqcolordialog\.h/g' \
-e 's/qcolor\.h/ntqcolor\.h/g' \
-e 's/qcombobox\.h/ntqcombobox\.h/g' \
-e 's/qcombo\.h/ntqcombo\.h/g' \
-e 's/qcommonstyle\.h/ntqcommonstyle\.h/g' \
-e 's/qcompactstyle\.h/ntqcompactstyle\.h/g' \
-e 's/qconfig\.h/ntqconfig\.h/g' \
-e 's/qconnect\.h/ntqconnect\.h/g' \
-e 's/qconnection\.h/ntqconnection\.h/g' \
-e 's/qcstring\.h/ntqcstring\.h/g' \
-e 's/qcursor\.h/ntqcursor\.h/g' \
-e 's/qdatabrowser\.h/ntqdatabrowser\.h/g' \
-e 's/qdatastream\.h/ntqdatastream\.h/g' \
-e 's/qdatatable\.h/ntqdatatable\.h/g' \
-e 's/qdataview\.h/ntqdataview\.h/g' \
-e 's/qdatetimeedit\.h/ntqdatetimeedit\.h/g' \
-e 's/qdatetime\.h/ntqdatetime\.h/g' \
-e 's/qdatetm\.h/ntqdatetm\.h/g' \
-e 's/qdeepcopy\.h/ntqdeepcopy\.h/g' \
-e 's/qdesktopwidget\.h/ntqdesktopwidget\.h/g' \
-e 's/qdial\.h/ntqdial\.h/g' \
-e 's/qdialog\.h/ntqdialog\.h/g' \
-e 's/qdict\.h/ntqdict\.h/g' \
-e 's/qdir\.h/ntqdir\.h/g' \
-e 's/qdns\.h/ntqdns\.h/g' \
-e 's/qdockarea\.h/ntqdockarea\.h/g' \
-e 's/qdockwindow\.h/ntqdockwindow\.h/g' \
-e 's/qdom\.h/ntqdom\.h/g' \
-e 's/qdragobject\.h/ntqdragobject\.h/g' \
-e 's/qdrawutil\.h/ntqdrawutil\.h/g' \
-e 's/qdrawutl\.h/ntqdrawutl\.h/g' \
-e 's/qdropsite\.h/ntqdropsite\.h/g' \
-e 's/qdstream\.h/ntqdstream\.h/g' \
-e 's/qeditorfactory\.h/ntqeditorfactory\.h/g' \
-e 's/qerrormessage\.h/ntqerrormessage\.h/g' \
-e 's/qeucjpcodec\.h/ntqeucjpcodec\.h/g' \
-e 's/qeuckrcodec\.h/ntqeuckrcodec\.h/g' \
-e 's/qevent\.h/ntqevent\.h/g' \
-e 's/qeventloop\.h/ntqeventloop\.h/g' \
-e 's/qfeatures\.h/ntqfeatures\.h/g' \
-e 's/qfiledef\.h/ntqfiledef\.h/g' \
-e 's/qfiledialog\.h/ntqfiledialog\.h/g' \
-e 's/qfiledlg\.h/ntqfiledlg\.h/g' \
-e 's/qfile\.h/ntqfile\.h/g' \
-e 's/qfileinf\.h/ntqfileinf\.h/g' \
-e 's/qfileinfo\.h/ntqfileinfo\.h/g' \
-e 's/qfocusdata\.h/ntqfocusdata\.h/g' \
-e 's/qfontdatabase\.h/ntqfontdatabase\.h/g' \
-e 's/qfontdialog\.h/ntqfontdialog\.h/g' \
-e 's/qfont\.h/ntqfont\.h/g' \
-e 's/qfontinf\.h/ntqfontinf\.h/g' \
-e 's/qfontinfo\.h/ntqfontinfo\.h/g' \
-e 's/qfontmet\.h/ntqfontmet\.h/g' \
-e 's/qfontmetrics\.h/ntqfontmetrics\.h/g' \
-e 's/qframe\.h/ntqframe\.h/g' \
-e 's/qftp\.h/ntqftp\.h/g' \
-e 's/qgarray\.h/ntqgarray\.h/g' \
-e 's/qgb18030codec\.h/ntqgb18030codec\.h/g' \
-e 's/qgbkcodec\.h/ntqgbkcodec\.h/g' \
-e 's/qgcache\.h/ntqgcache\.h/g' \
-e 's/qgdict\.h/ntqgdict\.h/g' \
-e 's/qgeneric\.h/ntqgeneric\.h/g' \
-e 's/qgif\.h/ntqgif\.h/g' \
-e 's/qglcolormap\.h/ntqglcolormap\.h/g' \
-e 's/qgl\.h/ntqgl\.h/g' \
-e 's/qglist\.h/ntqglist\.h/g' \
-e 's/qglobal\.h/ntqglobal\.h/g' \
-e 's/qgplugin\.h/ntqgplugin\.h/g' \
-e 's/qgrid\.h/ntqgrid\.h/g' \
-e 's/qgridview\.h/ntqgridview\.h/g' \
-e 's/qgroupbox\.h/ntqgroupbox\.h/g' \
-e 's/qgrpbox\.h/ntqgrpbox\.h/g' \
-e 's/qguardedptr\.h/ntqguardedptr\.h/g' \
-e 's/qgvector\.h/ntqgvector\.h/g' \
-e 's/qhbox\.h/ntqhbox\.h/g' \
-e 's/qhbuttongroup\.h/ntqhbuttongroup\.h/g' \
-e 's/qheader\.h/ntqheader\.h/g' \
-e 's/qhgroupbox\.h/ntqhgroupbox\.h/g' \
-e 's/qhostaddress\.h/ntqhostaddress\.h/g' \
-e 's/qhttp\.h/ntqhttp\.h/g' \
-e 's/qiconset\.h/ntqiconset\.h/g' \
-e 's/qiconview\.h/ntqiconview\.h/g' \
-e 's/qimageformatplugin\.h/ntqimageformatplugin\.h/g' \
-e 's/qimage\.h/ntqimage\.h/g' \
-e 's/qinputcontextfactory\.h/ntqinputcontextfactory\.h/g' \
-e 's/qinputcontext\.h/ntqinputcontext\.h/g' \
-e 's/qinputcontextplugin\.h/ntqinputcontextplugin\.h/g' \
-e 's/qinputdialog\.h/ntqinputdialog\.h/g' \
-e 's/qintcache\.h/ntqintcache\.h/g' \
-e 's/qintcach\.h/ntqintcach\.h/g' \
-e 's/qintdict\.h/ntqintdict\.h/g' \
-e 's/qinterlacestyle\.h/ntqinterlacestyle\.h/g' \
-e 's/qiodev\.h/ntqiodev\.h/g' \
-e 's/qiodevice\.h/ntqiodevice\.h/g' \
-e 's/qjiscodec\.h/ntqjiscodec\.h/g' \
-e 's/qjpegio\.h/ntqjpegio\.h/g' \
-e 's/qjpunicode\.h/ntqjpunicode\.h/g' \
-e 's/qkeycode\.h/ntqkeycode\.h/g' \
-e 's/qkeysequence\.h/ntqkeysequence\.h/g' \
-e 's/qlabel\.h/ntqlabel\.h/g' \
-e 's/qlayout\.h/ntqlayout\.h/g' \
-e 's/qlcdnumber\.h/ntqlcdnumber\.h/g' \
-e 's/qlcdnum\.h/ntqlcdnum\.h/g' \
-e 's/qlibrary\.h/ntqlibrary\.h/g' \
-e 's/qlined\.h/ntqlined\.h/g' \
-e 's/qlineedit\.h/ntqlineedit\.h/g' \
-e 's/qlistbox\.h/ntqlistbox\.h/g' \
-e 's/qlist\.h/ntqlist\.h/g' \
-e 's/qlistview\.h/ntqlistview\.h/g' \
-e 's/qlocale\.h/ntqlocale\.h/g' \
-e 's/qlocalfs\.h/ntqlocalfs\.h/g' \
-e 's/qmainwindow\.h/ntqmainwindow\.h/g' \
-e 's/qmap\.h/ntqmap\.h/g' \
-e 's/qmemarray\.h/ntqmemarray\.h/g' \
-e 's/qmenubar\.h/ntqmenubar\.h/g' \
-e 's/qmenudata\.h/ntqmenudata\.h/g' \
-e 's/qmenudta\.h/ntqmenudta\.h/g' \
-e 's/qmessagebox\.h/ntqmessagebox\.h/g' \
-e 's/qmetaobject\.h/ntqmetaobject\.h/g' \
-e 's/qmetaobj\.h/ntqmetaobj\.h/g' \
-e 's/qmime\.h/ntqmime\.h/g' \
-e 's/qmlined\.h/ntqmlined\.h/g' \
-e 's/qmngio\.h/ntqmngio\.h/g' \
-e 's/qmodules\.h/ntqmodules\.h/g' \
-e 's/qmotifplusstyle\.h/ntqmotifplusstyle\.h/g' \
-e 's/qmotifstyle\.h/ntqmotifstyle\.h/g' \
-e 's/qmovie\.h/ntqmovie\.h/g' \
-e 's/qmsgbox\.h/ntqmsgbox\.h/g' \
-e 's/qmultilinedit\.h/ntqmultilinedit\.h/g' \
-e 's/qmultilineedit\.h/ntqmultilineedit\.h/g' \
-e 's/qmutex\.h/ntqmutex\.h/g' \
-e 's/qnamespace\.h/ntqnamespace\.h/g' \
-e 's/qnetwork\.h/ntqnetwork\.h/g' \
-e 's/qnetworkprotocol\.h/ntqnetworkprotocol\.h/g' \
-e 's/qnp\.h/ntqnp\.h/g' \
-e 's/qobjcoll\.h/ntqobjcoll\.h/g' \
-e 's/qobjdefs\.h/ntqobjdefs\.h/g' \
-e 's/qobjectcleanuphandler\.h/ntqobjectcleanuphandler\.h/g' \
-e 's/qobjectdefs\.h/ntqobjectdefs\.h/g' \
-e 's/qobjectdict\.h/ntqobjectdict\.h/g' \
-e 's/qobject\.h/ntqobject\.h/g' \
-e 's/qobjectlist\.h/ntqobjectlist\.h/g' \
-e 's/qpaintdc\.h/ntqpaintdc\.h/g' \
-e 's/qpaintdevicedefs\.h/ntqpaintdevicedefs\.h/g' \
-e 's/qpaintdevice\.h/ntqpaintdevice\.h/g' \
-e 's/qpaintdevicemetrics\.h/ntqpaintdevicemetrics\.h/g' \
-e 's/qpaintd\.h/ntqpaintd\.h/g' \
-e 's/qpainter\.h/ntqpainter\.h/g' \
-e 's/qpair\.h/ntqpair\.h/g' \
-e 's/qpalette\.h/ntqpalette\.h/g' \
-e 's/qpdevmet\.h/ntqpdevmet\.h/g' \
-e 's/qpen\.h/ntqpen\.h/g' \
-e 's/qpicture\.h/ntqpicture\.h/g' \
-e 's/qpixmapcache\.h/ntqpixmapcache\.h/g' \
-e 's/qpixmap\.h/ntqpixmap\.h/g' \
-e 's/qplatinumstyle\.h/ntqplatinumstyle\.h/g' \
-e 's/qpmcache\.h/ntqpmcache\.h/g' \
-e 's/qpngio\.h/ntqpngio\.h/g' \
-e 's/qpntarry\.h/ntqpntarry\.h/g' \
-e 's/qpointarray\.h/ntqpointarray\.h/g' \
-e 's/qpoint\.h/ntqpoint\.h/g' \
-e 's/qpolygonscanner\.h/ntqpolygonscanner\.h/g' \
-e 's/qpopmenu\.h/ntqpopmenu\.h/g' \
-e 's/qpopupmenu\.h/ntqpopupmenu\.h/g' \
-e 's/qprintdialog\.h/ntqprintdialog\.h/g' \
-e 's/qprinter\.h/ntqprinter\.h/g' \
-e 's/qprndlg\.h/ntqprndlg\.h/g' \
-e 's/qprocess\.h/ntqprocess\.h/g' \
-e 's/qprogbar\.h/ntqprogbar\.h/g' \
-e 's/qprogdlg\.h/ntqprogdlg\.h/g' \
-e 's/qprogressbar\.h/ntqprogressbar\.h/g' \
-e 's/qprogressdialog\.h/ntqprogressdialog\.h/g' \
-e 's/qpsprn\.h/ntqpsprn\.h/g' \
-e 's/qptrcollection\.h/ntqptrcollection\.h/g' \
-e 's/qptrdict\.h/ntqptrdict\.h/g' \
-e 's/qptrlist\.h/ntqptrlist\.h/g' \
-e 's/qptrqueue\.h/ntqptrqueue\.h/g' \
-e 's/qptrstack\.h/ntqptrstack\.h/g' \
-e 's/qptrvector\.h/ntqptrvector\.h/g' \
-e 's/qpushbt\.h/ntqpushbt\.h/g' \
-e 's/qpushbutton\.h/ntqpushbutton\.h/g' \
-e 's/qqueue\.h/ntqqueue\.h/g' \
-e 's/qradiobt\.h/ntqradiobt\.h/g' \
-e 's/qradiobutton\.h/ntqradiobutton\.h/g' \
-e 's/qrangecontrol\.h/ntqrangecontrol\.h/g' \
-e 's/qrangect\.h/ntqrangect\.h/g' \
-e 's/qrect\.h/ntqrect\.h/g' \
-e 's/qregexp\.h/ntqregexp\.h/g' \
-e 's/qregion\.h/ntqregion\.h/g' \
-e 's/qrtlcodec\.h/ntqrtlcodec\.h/g' \
-e 's/qscrbar\.h/ntqscrbar\.h/g' \
-e 's/qscrollbar\.h/ntqscrollbar\.h/g' \
-e 's/qscrollview\.h/ntqscrollview\.h/g' \
-e 's/qsemaphore\.h/ntqsemaphore\.h/g' \
-e 's/qsemimodal\.h/ntqsemimodal\.h/g' \
-e 's/qserversocket\.h/ntqserversocket\.h/g' \
-e 's/qsession\.h/ntqsession\.h/g' \
-e 's/qsessionmanager\.h/ntqsessionmanager\.h/g' \
-e 's/qsettings\.h/ntqsettings\.h/g' \
-e 's/qsgistyle\.h/ntqsgistyle\.h/g' \
-e 's/qshared\.h/ntqshared\.h/g' \
-e 's/qsignal\.h/ntqsignal\.h/g' \
-e 's/qsignalmapper\.h/ntqsignalmapper\.h/g' \
-e 's/qsignalslotimp\.h/ntqsignalslotimp\.h/g' \
-e 's/qsimplerichtext\.h/ntqsimplerichtext\.h/g' \
-e 's/qsizegrip\.h/ntqsizegrip\.h/g' \
-e 's/qsize\.h/ntqsize\.h/g' \
-e 's/qsizepolicy\.h/ntqsizepolicy\.h/g' \
-e 's/qsjiscodec\.h/ntqsjiscodec\.h/g' \
-e 's/qslider\.h/ntqslider\.h/g' \
-e 's/qsocketdevice\.h/ntqsocketdevice\.h/g' \
-e 's/qsocket\.h/ntqsocket\.h/g' \
-e 's/qsocketnotifier\.h/ntqsocketnotifier\.h/g' \
-e 's/qsocknot\.h/ntqsocknot\.h/g' \
-e 's/qsortedlist\.h/ntqsortedlist\.h/g' \
-e 's/qsound\.h/ntqsound\.h/g' \
-e 's/qspinbox\.h/ntqspinbox\.h/g' \
-e 's/qsplashscreen\.h/ntqsplashscreen\.h/g' \
-e 's/qsplitter\.h/ntqsplitter\.h/g' \
-e 's/qsqlcursor\.h/ntqsqlcursor\.h/g' \
-e 's/qsqldatabase\.h/ntqsqldatabase\.h/g' \
-e 's/qsqldriver\.h/ntqsqldriver\.h/g' \
-e 's/qsqldriverplugin\.h/ntqsqldriverplugin\.h/g' \
-e 's/qsqleditorfactory\.h/ntqsqleditorfactory\.h/g' \
-e 's/qsqlerror\.h/ntqsqlerror\.h/g' \
-e 's/qsqlfield\.h/ntqsqlfield\.h/g' \
-e 's/qsqlform\.h/ntqsqlform\.h/g' \
-e 's/qsql\.h/ntqsql\.h/g' \
-e 's/qsqlindex\.h/ntqsqlindex\.h/g' \
-e 's/qsqlpropertymap\.h/ntqsqlpropertymap\.h/g' \
-e 's/qsqlquery\.h/ntqsqlquery\.h/g' \
-e 's/qsqlrecord\.h/ntqsqlrecord\.h/g' \
-e 's/qsqlresult\.h/ntqsqlresult\.h/g' \
-e 's/qsqlselectcursor\.h/ntqsqlselectcursor\.h/g' \
-e 's/qstack\.h/ntqstack\.h/g' \
-e 's/qstatusbar\.h/ntqstatusbar\.h/g' \
-e 's/qstring\.h/ntqstring\.h/g' \
-e 's/qstringlist\.h/ntqstringlist\.h/g' \
-e 's/qstrlist\.h/ntqstrlist\.h/g' \
-e 's/qstrvec\.h/ntqstrvec\.h/g' \
-e 's/qstylefactory\.h/ntqstylefactory\.h/g' \
-e 's/qstyle\.h/ntqstyle\.h/g' \
-e 's/qstyleplugin\.h/ntqstyleplugin\.h/g' \
-e 's/qstylesheet\.h/ntqstylesheet\.h/g' \
-e 's/qsyntaxhighlighter\.h/ntqsyntaxhighlighter\.h/g' \
-e 's/qtabbar\.h/ntqtabbar\.h/g' \
-e 's/qtabdialog\.h/ntqtabdialog\.h/g' \
-e 's/qtabdlg\.h/ntqtabdlg\.h/g' \
-e 's/qtable\.h/ntqtable\.h/g' \
-e 's/qtabwidget\.h/ntqtabwidget\.h/g' \
-e 's/qtextbrowser\.h/ntqtextbrowser\.h/g' \
-e 's/qtextcodecfactory\.h/ntqtextcodecfactory\.h/g' \
-e 's/qtextcodec\.h/ntqtextcodec\.h/g' \
-e 's/qtextcodecplugin\.h/ntqtextcodecplugin\.h/g' \
-e 's/qtextedit\.h/ntqtextedit\.h/g' \
-e 's/qtextstream\.h/ntqtextstream\.h/g' \
-e 's/qtextview\.h/ntqtextview\.h/g' \
-e 's/qt\.h/ntqt\.h/g' \
-e 's/qthread\.h/ntqthread\.h/g' \
-e 's/qthreadstorage\.h/ntqthreadstorage\.h/g' \
-e 's/qtimer\.h/ntqtimer\.h/g' \
-e 's/qtl\.h/ntqtl\.h/g' \
-e 's/qtoolbar\.h/ntqtoolbar\.h/g' \
-e 's/qtoolbox\.h/ntqtoolbox\.h/g' \
-e 's/qtoolbutton\.h/ntqtoolbutton\.h/g' \
-e 's/qtooltip\.h/ntqtooltip\.h/g' \
-e 's/qtranslator\.h/ntqtranslator\.h/g' \
-e 's/qtsciicodec\.h/ntqtsciicodec\.h/g' \
-e 's/qtstream\.h/ntqtstream\.h/g' \
-e 's/qurl\.h/ntqurl\.h/g' \
-e 's/qurlinfo\.h/ntqurlinfo\.h/g' \
-e 's/qurloperator\.h/ntqurloperator\.h/g' \
-e 's/qutfcodec\.h/ntqutfcodec\.h/g' \
-e 's/quuid\.h/ntquuid\.h/g' \
-e 's/qvalidator\.h/ntqvalidator\.h/g' \
-e 's/qvaluelist\.h/ntqvaluelist\.h/g' \
-e 's/qvaluestack\.h/ntqvaluestack\.h/g' \
-e 's/qvaluevector\.h/ntqvaluevector\.h/g' \
-e 's/qvariant\.h/ntqvariant\.h/g' \
-e 's/qvbox\.h/ntqvbox\.h/g' \
-e 's/qvbuttongroup\.h/ntqvbuttongroup\.h/g' \
-e 's/qvector\.h/ntqvector\.h/g' \
-e 's/qvfbhdr\.h/ntqvfbhdr\.h/g' \
-e 's/qvgroupbox\.h/ntqvgroupbox\.h/g' \
-e 's/qwaitcondition\.h/ntqwaitcondition\.h/g' \
-e 's/qwhatsthis\.h/ntqwhatsthis\.h/g' \
-e 's/qwidcoll\.h/ntqwidcoll\.h/g' \
-e 's/qwidgetfactory\.h/ntqwidgetfactory\.h/g' \
-e 's/qwidget\.h/ntqwidget\.h/g' \
-e 's/qwidgetintdict\.h/ntqwidgetintdict\.h/g' \
-e 's/qwidgetlist\.h/ntqwidgetlist\.h/g' \
-e 's/qwidgetplugin\.h/ntqwidgetplugin\.h/g' \
-e 's/qwidgetstack\.h/ntqwidgetstack\.h/g' \
-e 's/qwindefs\.h/ntqwindefs\.h/g' \
-e 's/qwindowdefs\.h/ntqwindowdefs\.h/g' \
-e 's/qwindowsstyle\.h/ntqwindowsstyle\.h/g' \
-e 's/qwinexport\.h/ntqwinexport\.h/g' \
-e 's/qwizard\.h/ntqwizard\.h/g' \
-e 's/qwmatrix\.h/ntqwmatrix\.h/g' \
-e 's/qworkspace\.h/ntqworkspace\.h/g' \
-e 's/qxml\.h/ntqxml\.h/g'

@ -1,76 +0,0 @@
#!/bin/bash
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \;
find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \;
find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/^Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \;
find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \;
find ./ -type f -iname "*.ui*" -not -iwholename '*.git*' -exec sed -i 's/\([^_]\)Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/\1TQ\2\3/g' {} \;