You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
experimental/kde-tde/convert_existing_kde3_app_t...

512 lines
17 KiB

#!/bin/bash
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|\
KProcess|\
KClipboard|\
Kwallet|\
KWallet|\
KWALLET|\
kcompletionbox|\
kaboutapplication\.|\
kaboutdata\.|\
kaboutdialog\.|\
kaboutkde\.|\
kcmdlineargs\.|\
kapplication\.|\
kstyle\.|\
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]\|^)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]\|^)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*' -exec sed -i '/^Keyword/ { s,\,,;,g }' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ServiceTypes=/X-TDE-ServiceTypes=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ServiceTypes\[\(.*\)\]=/X-TDE-ServiceTypes\[\1\]=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ExcludeServiceTypes=/X-TDE-ExcludeServiceTypes=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ExcludeServiceTypes\[\(.*\)\]=/X-TDE-ExcludeServiceTypes\[\1\]=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^DocPath=/X-DocPath=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^DocPath\[\(.*\)\]=/X-DocPath\[\1\]=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^InitialPreference=/X-TDE-InitialPreference=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i '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)
./convert_kde3_icon_names_to_xdg_standards