Experimental code
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.

525 lines
17KB

  1. #!/bin/bash
  2. #
  3. # Licensed under the GPL v2
  4. THISSCRIPT=$(readlink -f $0)
  5. if [[ ! -e "$THISSCRIPT" ]]; then
  6. echo "Unable to find myself! Exiting..."
  7. exit 1
  8. fi
  9. SCRIPTPATH=`dirname $THISSCRIPT`
  10. find ./ -type f -not -iwholename '*.git*' -print0 |
  11. xargs -r0 grep -ElI "([^a-zA-Z0-9]|^)(\
  12. (|-l|lib)kdecorations|\
  13. (|-l|lib)kdecore|\
  14. (|-l|lib)kdefakes|\
  15. (|-l|lib)kdefx|\
  16. (|-l|lib)kdegames|\
  17. (|-l|lib)kdeinit|\
  18. (|-l|lib)kdepim|\
  19. (|-l|lib)kdeprint|\
  20. (|-l|lib)kdesasl|\
  21. (|-l|lib)kdesu|\
  22. (|-l|lib)kdesvnpart|\
  23. (|-l|lib)kdeui|\
  24. KDECORATIONS|\
  25. KDECORE|\
  26. KDEFAKES|\
  27. KDEFX|\
  28. KDEGAMES|\
  29. KDEINIT|\
  30. KDEPIM|\
  31. KDEPRINT|\
  32. KDESASL|\
  33. KDESU|\
  34. KDESVNPART|\
  35. KDEUI|\
  36. KDNSSD|\
  37. KIMPROXY|\
  38. KIO([^a-zA-Z0-9]|\$)|\
  39. KPARTS|\
  40. KSPELL|\
  41. KSYCOCA|\
  42. KUNITTEST|\
  43. KUTILS|\
  44. (|-l|lib)kdeaccessibility|\
  45. (|-l|lib)kdeaddons|\
  46. (|-l|lib)kdeadmin|\
  47. (|-l|lib)kdeartwork|\
  48. (|-l|lib)kdebase|\
  49. (|-l|lib)kdebindings|\
  50. (|-l|lib)kdeedu|\
  51. (|-l|lib)kdegames|\
  52. (|-l|lib)kdegraphics|\
  53. kde-i18n|\
  54. (|-l|lib)kdelibs|\
  55. (|-l|lib)kdemultimedia|\
  56. (|-l|lib)kdenetwork|\
  57. (|-l|lib)kdepim|\
  58. (|-l|lib)kdesdk|\
  59. (|-l|lib)kdetoys|\
  60. (|-l|lib)kdeutils|\
  61. (|-l|lib)kdevelop|\
  62. (|-l|lib)kdewebdev|\
  63. desktop-effects-kde|\
  64. kde-guidance|\
  65. kde-style-lipstik|\
  66. kde-style-qtcurve|\
  67. kdesudo|\
  68. kdesvn|\
  69. kde-systemsettings|\
  70. kwin-style-crystal|\
  71. kwin|\
  72. KDE_VERSION|\
  73. kdeversion|\
  74. startkde|\
  75. pykde|\
  76. KDEHOME|\
  77. KDEDIR|\
  78. KDE_MULTIHEAD|\
  79. KDE_SESSION|\
  80. kdehome|\
  81. kdedir|\
  82. KDEROOTHOME|\
  83. kderoothome|\
  84. KDE_MAKE_VERSION|\
  85. kdm|\
  86. KDM|\
  87. ksocket|\
  88. KSOCKET|\
  89. kcache|\
  90. KCACHE|\
  91. KDETMP|\
  92. KDEVARTMP|\
  93. KDEWM|\
  94. include/kde([^\.]|\$)|\
  95. \$\{INCLUDE_INSTALL_DIR\}/kde([^\.]|\$)|\
  96. kde-config|\
  97. KDE_FORK_SLAVES|\
  98. KDE_HOME_READONLY|\
  99. KDE_NO_IPV6|\
  100. KDE_IS_PRELINKED|\
  101. KDE_UTF8_FILENAMES|\
  102. KDESYCOCA|\
  103. KApplication|\
  104. KCmdLineArgs|\
  105. KInstance|\
  106. KAboutData|\
  107. KCModule|\
  108. KConfig|\
  109. KServer|\
  110. KSocket|\
  111. KIO\.|\
  112. KIO:|\
  113. KIO;|\
  114. \<KIO\>|\
  115. KIO_|\
  116. KIOInput|\
  117. KIOJob|\
  118. KIOConfig|\
  119. KIOBuffer|\
  120. KBuffer|\
  121. kcmodule|\
  122. kconfig_compiler|\
  123. kunittestmodrunner|\
  124. kioexec|\
  125. kio_|\
  126. kmailservice|\
  127. ktelnetservice|\
  128. ksendbugmail|\
  129. (|-l|lib)kfile|\
  130. ktradertest|\
  131. kbuildsycoca|\
  132. kde-menu|\
  133. kmimelist|\
  134. kioslave|\
  135. kio/|\
  136. (|-l|lib)kio\>|\
  137. kstartupconfig|\
  138. kdostartupconfig|\
  139. klauncher|\
  140. kab2kabc|\
  141. kcmshell|\
  142. kconf|\
  143. khotnewstuff|\
  144. (|-l|lib)ksycoca|\
  145. (|-l|lib)kunittest|\
  146. (|-l|lib)kwallet|\
  147. kntlm|\
  148. (|-l|lib)kparts|\
  149. (|-l|lib)kutils|\
  150. (|-l|lib)kspell|\
  151. (|-l|lib)kmdi|\
  152. (|-l|lib)kresources|\
  153. kscript|\
  154. kmediaplayer|\
  155. (|-l|lib)kimproxy|\
  156. (|-l|lib)ktexteditor|\
  157. kcert|\
  158. krandr|\
  159. (|-l|lib)khtml|\
  160. kmulti|\
  161. kmid|\
  162. kscreensaver|\
  163. (|-l|lib)kdnssd|\
  164. krsync|\
  165. kiobuffer|\
  166. KHTML|\
  167. KShared|\
  168. KStandard|\
  169. KStartup|\
  170. KLocale|\
  171. KLock|\
  172. KTrader|\
  173. KLaunch|\
  174. KShort|\
  175. KStdAccel|\
  176. KAccel|\
  177. KAction|\
  178. KMain|\
  179. KTool|\
  180. KPopup|\
  181. KToggle|\
  182. KRadio|\
  183. KSelect|\
  184. KList|\
  185. KRecent|\
  186. KFont|\
  187. KPaste|\
  188. klaunch|\
  189. kshort|\
  190. kstdaccel|\
  191. kaccel|\
  192. kaction|\
  193. kmain|\
  194. ktool|\
  195. kpopup|\
  196. ktoggle|\
  197. kradio|\
  198. kselect|\
  199. klist|\
  200. krecent|\
  201. kfont|\
  202. kpaste|\
  203. kdisplay|\
  204. KStyle|\
  205. KIcon|\
  206. KZone|\
  207. KCrash|\
  208. KCmd|\
  209. KAbout|\
  210. KComp|\
  211. KGlobal|\
  212. (|the)KProcess|\
  213. KClipboard|\
  214. Kwallet|\
  215. KWallet|\
  216. KWALLET|\
  217. kcompletionbox|\
  218. kaboutapplication\.|\
  219. kaboutdata\.|\
  220. kaboutdialog\.|\
  221. kaboutkde\.|\
  222. kcmdlineargs\.|\
  223. kapplication\.|\
  224. kstyle\.|\
  225. drawKStylePrimitive|\
  226. kdiroperator\.|\
  227. klocale\.|\
  228. kmessagebox\.|\
  229. ktempfile\.|\
  230. kemailsettings\.|\
  231. kglobal\.|\
  232. kglobalsettings\.|\
  233. kmenubar\.|\
  234. kprotocolmanager\.|\
  235. kstartupinfo\.|\
  236. kabc|\
  237. (|-l|lib)kabc|\
  238. makekdewidgets|\
  239. MAKEKDEWIDGETS|\
  240. kdewidgets|\
  241. Categories=Qt;KDE|\
  242. X-KDE-|\
  243. kde\.org/tdehotnewstuff|\
  244. tdevelop[a-z_\-]*@[tk]develop\.org|\
  245. tdevelop\.org|\
  246. tdewebdev\.org|\
  247. \<tdelistr|\
  248. kde toolbar widget\
  249. )" |
  250. tr "\n" "\0" |
  251. xargs -r0 sed -ri \
  252. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdecorations|\1tdecorations|g" \
  253. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdecore|\1tdecore|g" \
  254. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdefakes|\1tdefakes|g" \
  255. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdefx|\1tdefx|g" \
  256. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdegames|\1tdegames|g" \
  257. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeinit|\1tdeinit|g" \
  258. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdepim|\1tdepim|g" \
  259. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeprint|\1tdeprint|g" \
  260. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesasl|\1tdesasl|g" \
  261. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesu|\1tdesu|g" \
  262. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesvnpart|\1tdesvnpart|g" \
  263. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeui|\1tdeui|g" \
  264. -e "s|([^a-zA-Z0-9]\|^)KDECORATIONS|\1TDECORATIONS|g" \
  265. -e "s|([^a-zA-Z0-9]\|^)KDECORE|\1TDECORE|g" \
  266. -e "s|([^a-zA-Z0-9]\|^)KDEFAKES|\1TDEFAKES|g" \
  267. -e "s|([^a-zA-Z0-9]\|^)KDEFX|\1TDEFX|g" \
  268. -e "s|([^a-zA-Z0-9]\|^)KDEGAMES|\1TDEGAMES|g" \
  269. -e "s|([^a-zA-Z0-9]\|^)KDEINIT|\1TDEINIT|g" \
  270. -e "s|([^a-zA-Z0-9]\|^)KDEPIM|\1TDEPIM|g" \
  271. -e "s|([^a-zA-Z0-9]\|^)KDEPRINT|\1TDEPRINT|g" \
  272. -e "s|([^a-zA-Z0-9]\|^)KDESASL|\1TDESASL|g" \
  273. -e "s|([^a-zA-Z0-9]\|^)KDESU|\1TDESU|g" \
  274. -e "s|([^a-zA-Z0-9]\|^)KDESVNPART|\1TDESVNPART|g" \
  275. -e "s|([^a-zA-Z0-9]\|^)KDEUI|\1TDEUI|g" \
  276. -e "s|([^a-zA-Z0-9]\|^)KDNSSD|\1TDEDNSSD|g" \
  277. -e "s|([^a-zA-Z0-9]\|^)KIMPROXY|\1TDEIMPROXY|g" \
  278. -e "s|([^a-zA-Z0-9]\|^)KIO([^a-zA-Z0-9]\|\$)|\1TDEIO\2|g" \
  279. -e "s|([^a-zA-Z0-9]\|^)KPARTS|\1TDEPARTS|g" \
  280. -e "s|([^a-zA-Z0-9]\|^)KSPELL|\1TDESPELL|g" \
  281. -e "s|([^a-zA-Z0-9]\|^)KSYCOCA|\1TDESYCOCA|g" \
  282. -e "s|([^a-zA-Z0-9]\|^)KUNITTEST|\1TDEUNITTEST|g" \
  283. -e "s|([^a-zA-Z0-9]\|^)KUTILS|\1TDEUTILS|g" \
  284. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeaccessibility|\1tdeaccessibility|g" \
  285. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeaddons|\1tdeaddons|g" \
  286. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeadmin|\1tdeadmin|g" \
  287. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeartwork|\1tdeartwork|g" \
  288. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdebase|\1tdebase|g" \
  289. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdebindings|\1tdebindings|g" \
  290. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeedu|\1tdeedu|g" \
  291. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdegames|\1tdegames|g" \
  292. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdegraphics|\1tdegraphics|g" \
  293. -e "s|([^a-zA-Z0-9]\|^)kde-i18n|\1tde-i18n|g" \
  294. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdelibs|\1tdelibs|g" \
  295. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdemultimedia|\1tdemultimedia|g" \
  296. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdenetwork|\1tdenetwork|g" \
  297. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdepim|\1tdepim|g" \
  298. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdesdk|\1tdesdk|g" \
  299. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdetoys|\1tdetoys|g" \
  300. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdeutils|\1tdeutils|g" \
  301. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdevelop|\1tdevelop|g" \
  302. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdewebdev|\1tdewebdev|g" \
  303. -e "s|([^a-zA-Z0-9]\|^)desktop-effects-kde|\1desktop-effects-tde|g" \
  304. -e "s|([^a-zA-Z0-9]\|^)kde-guidance|\1tde-guidance|g" \
  305. -e "s|([^a-zA-Z0-9]\|^)kde-style-lipstik|\1tde-style-lipstik|g" \
  306. -e "s|([^a-zA-Z0-9]\|^)kde-style-qtcurve|\1tde-style-qtcurve|g" \
  307. -e "s|([^a-zA-Z0-9]\|^)kdesudo|\1tdesudo|g" \
  308. -e "s|([^a-zA-Z0-9]\|^)kdesvn|\1tdesvn|g" \
  309. -e "s|([^a-zA-Z0-9]\|^)kde-systemsettings|\1tde-systemsettings|g" \
  310. -e "s|([^a-zA-Z0-9]\|^)kwin-style-crystal|\1twin-style-crystal|g" \
  311. -e "s|([^a-zA-Z0-9]\|^)kwin|\1twin|g" \
  312. -e "s|([^a-zA-Z0-9]\|^)KDE_VERSION|\1TDE_VERSION|g" \
  313. -e "s|([^a-zA-Z0-9]\|^)kdeversion|\1tdeversion|g" \
  314. -e "s|([^a-zA-Z0-9]\|^)startkde|\1starttde|g" \
  315. -e "s|([^a-zA-Z0-9]\|^)pykde|\1pytde|g" \
  316. -e "s|([^a-zA-Z0-9]\|^)KDEHOME|\1TDEHOME|g" \
  317. -e "s|([^a-zA-Z0-9]\|^)KDEDIR|\1TDEDIR|g" \
  318. -e "s|([^a-zA-Z0-9]\|^)KDE_MULTIHEAD|\1TDE_MULTIHEAD|g" \
  319. -e "s|([^a-zA-Z0-9]\|^)KDE_SESSION|\1TDE_SESSION|g" \
  320. -e "s|([^a-zA-Z0-9]\|^)kdehome|\1tdehome|g" \
  321. -e "s|([^a-zA-Z0-9]\|^)kdedir|\1tdedir|g" \
  322. -e "s|([^a-zA-Z0-9]\|^)KDEROOTHOME|\1TDEROOTHOME|g" \
  323. -e "s|([^a-zA-Z0-9]\|^)kderoothome|\1tderoothome|g" \
  324. -e "s|([^a-zA-Z0-9]\|^)KDE_MAKE_VERSION|\1TDE_MAKE_VERSION|g" \
  325. -e "s|([^a-zA-Z0-9]\|^)kdm|\1tdm|g" \
  326. -e "s|([^a-zA-Z0-9]\|^)KDM|\1TDM|g" \
  327. -e "s|([^a-zA-Z0-9]\|^)ksocket|\1tdesocket|g" \
  328. -e "s|([^a-zA-Z0-9]\|^)KSOCKET|\1TDESOCKET|g" \
  329. -e "s|([^a-zA-Z0-9]\|^)kcache|\1tdecache|g" \
  330. -e "s|([^a-zA-Z0-9]\|^)KCACHE|\1TDECACHE|g" \
  331. -e "s|([^a-zA-Z0-9]\|^)KDETMP|\1TDETMP|g" \
  332. -e "s|([^a-zA-Z0-9]\|^)KDEVARTMP|\1TDEVARTMP|g" \
  333. -e "s|([^a-zA-Z0-9]\|^)KDEWM|\1TDEWM|g" \
  334. -e "s|([^a-zA-Z0-9]\|^)include/kde([^\.]\|\$)|\1include/tde\2|g" \
  335. -e "s|([^a-zA-Z0-9]\|^)\$\{INCLUDE_INSTALL_DIR\}/kde([^\.]\|\$)|\1\${INCLUDE_INSTALL_DIR}/tde\2|g" \
  336. -e "s|([^a-zA-Z0-9]\|^)kde-config|\1tde-config|g" \
  337. -e "s|([^a-zA-Z0-9]\|^)KDE_FORK_SLAVES|\1TDE_FORK_SLAVES|g" \
  338. -e "s|([^a-zA-Z0-9]\|^)KDE_HOME_READONLY|\1TDE_HOME_READONLY|g" \
  339. -e "s|([^a-zA-Z0-9]\|^)KDE_NO_IPV6|\1TDE_NO_IPV6|g" \
  340. -e "s|([^a-zA-Z0-9]\|^)KDE_IS_PRELINKED|\1TDE_IS_PRELINKED|g" \
  341. -e "s|([^a-zA-Z0-9]\|^)KDE_UTF8_FILENAMES|\1TDE_UTF8_FILENAMES|g" \
  342. -e "s|([^a-zA-Z0-9]\|^)KDESYCOCA|\1TDESYCOCA|g" \
  343. \
  344. -e "s|([^a-zA-Z0-9]\|^)KApplication|\1TDEApplication|g" \
  345. -e "s|([^a-zA-Z0-9]\|^)KCmdLineArgs|\1TDECmdLineArgs|g" \
  346. -e "s|([^a-zA-Z0-9]\|^)KInstance|\1TDEInstance|g" \
  347. -e "s|([^a-zA-Z0-9]\|^)KAboutData|\1TDEAboutData|g" \
  348. \
  349. -e "s|([^a-zA-Z0-9]\|^)KCModule|\1TDECModule|g" \
  350. -e "s|([^a-zA-Z0-9]\|^)KConfig|\1TDEConfig|g" \
  351. -e "s|([^a-zA-Z0-9]\|^)KServer|\1TDEServer|g" \
  352. -e "s|([^a-zA-Z0-9]\|^)KSocket|\1TDESocket|g" \
  353. -e "s|([^a-zA-Z0-9]\|^)KIO\.|\1TDEIO.|g" \
  354. -e "s|([^a-zA-Z0-9]\|^)KIO:|\1TDEIO:|g" \
  355. -e "s|([^a-zA-Z0-9]\|^)KIO;|\1TDEIO;|g" \
  356. -e "s|([^a-zA-Z0-9]\|^)\<KIO\>|\1TDEIO|g" \
  357. -e "s|([^a-zA-Z0-9]\|^)KIO_|\1TDEIO_|g" \
  358. -e "s|([^a-zA-Z0-9]\|^)KIOInput|\1TDEIOInput|g" \
  359. -e "s|([^a-zA-Z0-9]\|^)KIOJob|\1TDEIOJob|g" \
  360. -e "s|([^a-zA-Z0-9]\|^)KIOConfig|\1TDEIOConfig|g" \
  361. -e "s|([^a-zA-Z0-9]\|^)KIOBuffer|\1TDEIOBuffer|g" \
  362. -e "s|([^a-zA-Z0-9]\|^)KBuffer|\1TDEBuffer|g" \
  363. -e "s|([^a-zA-Z0-9]\|^)kcmodule|\1tdecmodule|g" \
  364. \
  365. -e "s|([^a-zA-Z0-9]\|^)kconfig_compiler|\1tdeconfig_compiler|g" \
  366. -e "s|([^a-zA-Z0-9]\|^)kunittestmodrunner|\1tdeunittestmodrunner|g" \
  367. -e "s|([^a-zA-Z0-9]\|^)kioexec|\1tdeioexec|g" \
  368. -e "s|([^a-zA-Z0-9]\|^)kio_|\1tdeio_|g" \
  369. -e "s|([^a-zA-Z0-9]\|^)kmailservice|\1tdemailservice|g" \
  370. -e "s|([^a-zA-Z0-9]\|^)ktelnetservice|\1tdetelnetservice|g" \
  371. -e "s|([^a-zA-Z0-9]\|^)ksendbugmail|\1tdesendbugmail|g" \
  372. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kfile|\1tdefile|g" \
  373. -e "s|([^a-zA-Z0-9]\|^)ktradertest|\1tdetradertest|g" \
  374. -e "s|([^a-zA-Z0-9]\|^)kbuildsycoca|\1tdebuildsycoca|g" \
  375. -e "s|([^a-zA-Z0-9]\|^)kde-menu|\1tde-menu|g" \
  376. -e "s|([^a-zA-Z0-9]\|^)kmimelist|\1tdemimelist|g" \
  377. -e "s|([^a-zA-Z0-9]\|^)kioslave|\1tdeioslave|g" \
  378. -e "s|([^a-zA-Z0-9]\|^)kio/|\1tdeio/|g" \
  379. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kio\>|\1tdeio|g" \
  380. -e "s|([^a-zA-Z0-9]\|^)kstartupconfig|\1tdestartupconfig|g" \
  381. -e "s|([^a-zA-Z0-9]\|^)kdostartupconfig|\1tdedostartupconfig|g" \
  382. -e "s|([^a-zA-Z0-9]\|^)klauncher|\1tdelauncher|g" \
  383. -e "s|([^a-zA-Z0-9]\|^)kab2kabc|\1tdeab2tdeabc|g" \
  384. -e "s|([^a-zA-Z0-9]\|^)kcmshell|\1tdecmshell|g" \
  385. -e "s|([^a-zA-Z0-9]\|^)kconf|\1tdeconf|g" \
  386. -e "s|([^a-zA-Z0-9]\|^)khotnewstuff|\1tdehotnewstuff|g" \
  387. \
  388. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)ksycoca|\1tdesycoca|g" \
  389. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kunittest|\1tdeunittest|g" \
  390. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kwallet|\1tdewallet|g" \
  391. -e "s|([^a-zA-Z0-9]\|^)kntlm|\1tdentlm|g" \
  392. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kparts|\1tdeparts|g" \
  393. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kutils|\1tdeutils|g" \
  394. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kspell|\1tdespell|g" \
  395. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kmdi|\1tdemdi|g" \
  396. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kresources|\1tderesources|g" \
  397. -e "s|([^a-zA-Z0-9]\|^)kscript|\1tdescript|g" \
  398. -e "s|([^a-zA-Z0-9]\|^)kmediaplayer|\1tdemediaplayer|g" \
  399. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kimproxy|\1tdeimproxy|g" \
  400. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)ktexteditor|\1tdetexteditor|g" \
  401. -e "s|([^a-zA-Z0-9]\|^)kcert|\1tdecert|g" \
  402. -e "s|([^a-zA-Z0-9]\|^)krandr|\1tderandr|g" \
  403. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)khtml|\1tdehtml|g" \
  404. -e "s|([^a-zA-Z0-9]\|^)kmulti|\1tdemulti|g" \
  405. -e "s|([^a-zA-Z0-9]\|^)kmid|\1tdemid|g" \
  406. -e "s|([^a-zA-Z0-9]\|^)kscreensaver|\1tdescreensaver|g" \
  407. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kdnssd|\1tdednssd|g" \
  408. -e "s|([^a-zA-Z0-9]\|^)krsync|\1tdersync|g" \
  409. \
  410. -e "s|([^a-zA-Z0-9]\|^)kiobuffer|\1tdeiobuffer|g" \
  411. -e "s|([^a-zA-Z0-9]\|^)KHTML|\1TDEHTML|g" \
  412. -e "s|([^a-zA-Z0-9]\|^)KShared|\1TDEShared|g" \
  413. -e "s|([^a-zA-Z0-9]\|^)KStandard|\1TDEStandard|g" \
  414. -e "s|([^a-zA-Z0-9]\|^)KStartup|\1TDEStartup|g" \
  415. -e "s|([^a-zA-Z0-9]\|^)KLocale|\1TDELocale|g" \
  416. -e "s|([^a-zA-Z0-9]\|^)KLock|\1TDELock|g" \
  417. -e "s|([^a-zA-Z0-9]\|^)KTrader|\1TDETrader|g" \
  418. -e "s|([^a-zA-Z0-9]\|^)KLaunch|\1TDELaunch|g" \
  419. -e "s|([^a-zA-Z0-9]\|^)KShort|\1TDEShort|g" \
  420. -e "s|([^a-zA-Z0-9]\|^)KStdAccel|\1TDEStdAccel|g" \
  421. -e "s|([^a-zA-Z0-9]\|^)KAccel|\1TDEAccel|g" \
  422. -e "s|([^a-zA-Z0-9]\|^)KAction|\1TDEAction|g" \
  423. -e "s|([^a-zA-Z0-9]\|^)KMain|\1TDEMain|g" \
  424. -e "s|([^a-zA-Z0-9]\|^)KTool|\1TDETool|g" \
  425. -e "s|([^a-zA-Z0-9]\|^)KPopup|\1TDEPopup|g" \
  426. -e "s|([^a-zA-Z0-9]\|^)KToggle|\1TDEToggle|g" \
  427. -e "s|([^a-zA-Z0-9]\|^)KRadio|\1TDERadio|g" \
  428. -e "s|([^a-zA-Z0-9]\|^)KSelect|\1TDESelect|g" \
  429. -e "s|([^a-zA-Z0-9]\|^)KList|\1TDEList|g" \
  430. -e "s|([^a-zA-Z0-9]\|^)KRecent|\1TDERecent|g" \
  431. -e "s|([^a-zA-Z0-9]\|^)KFont|\1TDEFont|g" \
  432. -e "s|([^a-zA-Z0-9]\|^)KPaste|\1TDEPaste|g" \
  433. -e "s|([^a-zA-Z0-9]\|^)klaunch|\1tdelaunch|g" \
  434. -e "s|([^a-zA-Z0-9]\|^)kshort|\1tdeshort|g" \
  435. -e "s|([^a-zA-Z0-9]\|^)kstdaccel|\1tdestdaccel|g" \
  436. -e "s|([^a-zA-Z0-9]\|^)kaccel|\1tdeaccel|g" \
  437. -e "s|([^a-zA-Z0-9]\|^)kaction|\1tdeaction|g" \
  438. -e "s|([^a-zA-Z0-9]\|^)kmain|\1tdemain|g" \
  439. -e "s|([^a-zA-Z0-9]\|^)ktool|\1tdetool|g" \
  440. -e "s|([^a-zA-Z0-9]\|^)kpopup|\1tdepopup|g" \
  441. -e "s|([^a-zA-Z0-9]\|^)ktoggle|\1tdetoggle|g" \
  442. -e "s|([^a-zA-Z0-9]\|^)kradio|\1tderadio|g" \
  443. -e "s|([^a-zA-Z0-9]\|^)kselect|\1tdeselect|g" \
  444. -e "s|([^a-zA-Z0-9]\|^)klist|\1tdelist|g" \
  445. -e "s|([^a-zA-Z0-9]\|^)krecent|\1tderecent|g" \
  446. -e "s|([^a-zA-Z0-9]\|^)kfont|\1tdefont|g" \
  447. -e "s|([^a-zA-Z0-9]\|^)kpaste|\1tdepaste|g" \
  448. -e "s|([^a-zA-Z0-9]\|^)kdisplay|\1tdedisplay|g" \
  449. \
  450. -e "s|([^a-zA-Z0-9]\|^)KStyle|\1TDEStyle|g" \
  451. -e "s|([^a-zA-Z0-9]\|^)KIcon|\1TDEIcon|g" \
  452. -e "s|([^a-zA-Z0-9]\|^)KZone|\1TDEZone|g" \
  453. -e "s|([^a-zA-Z0-9]\|^)KCrash|\1TDECrash|g" \
  454. -e "s|([^a-zA-Z0-9]\|^)KCmd|\1TDECmd|g" \
  455. -e "s|([^a-zA-Z0-9]\|^)KAbout|\1TDEAbout|g" \
  456. -e "s|([^a-zA-Z0-9]\|^)KComp|\1TDEComp|g" \
  457. -e "s|([^a-zA-Z0-9]\|^)KGlobal|\1TDEGlobal|g" \
  458. -e "s|([^a-zA-Z0-9]\|the\|^)KProcess|\1TDEProcess|g" \
  459. -e "s|([^a-zA-Z0-9]\|^)KClipboard|\1TDEClipboard|g" \
  460. -e "s|([^a-zA-Z0-9]\|^)Kwallet|\1TDEwallet|g" \
  461. -e "s|([^a-zA-Z0-9]\|^)KWallet|\1TDEWallet|g" \
  462. -e "s|([^a-zA-Z0-9]\|^)KWALLET|\1TDEWALLET|g" \
  463. -e "s|([^a-zA-Z0-9]\|^)KDEsu|\1TDEsu|g" \
  464. \
  465. -e "s|([^a-zA-Z0-9]\|^)kcompletionbox|\1tdecompletionbox|g" \
  466. \
  467. -e "s|([^a-zA-Z0-9]\|^)kaboutapplication\.|\1tdeaboutapplication.|g" \
  468. -e "s|([^a-zA-Z0-9]\|^)kaboutdata\.|\1tdeaboutdata.|g" \
  469. -e "s|([^a-zA-Z0-9]\|^)kaboutdialog\.|\1tdeaboutdialog.|g" \
  470. -e "s|([^a-zA-Z0-9]\|^)kaboutkde\.|\1tdeabouttde.|g" \
  471. -e "s|([^a-zA-Z0-9]\|^)kcmdlineargs\.|\1tdecmdlineargs.|g" \
  472. -e "s|([^a-zA-Z0-9]\|^)kapplication\.|\1tdeapplication.|g" \
  473. -e "s|([^a-zA-Z0-9]\|^)kstyle\.|\1tdestyle.|g" \
  474. -e "s|([^a-zA-Z0-9]\|^)drawKStylePrimitive|\1drawTDEStylePrimitive|g" \
  475. \
  476. -e "s|([^a-zA-Z0-9]\|^)kdiroperator\.|\1tdediroperator.|g" \
  477. -e "s|([^a-zA-Z0-9]\|^)klocale\.|\1tdelocale.|g" \
  478. -e "s|([^a-zA-Z0-9]\|^)kmessagebox\.|\1tdemessagebox.|g" \
  479. -e "s|([^a-zA-Z0-9]\|^)ktempfile\.|\1tdetempfile.|g" \
  480. -e "s|([^a-zA-Z0-9]\|^)kemailsettings\.|\1tdeemailsettings.|g" \
  481. -e "s|([^a-zA-Z0-9]\|^)kglobal\.|\1tdeglobal.|g" \
  482. -e "s|([^a-zA-Z0-9]\|^)kglobalsettings\.|\1tdeglobalsettings.|g" \
  483. -e "s|([^a-zA-Z0-9]\|^)kmenubar\.|\1tdemenubar.|g" \
  484. -e "s|([^a-zA-Z0-9]\|^)kprotocolmanager\.|\1tdeprotocolmanager.|g" \
  485. -e "s|([^a-zA-Z0-9]\|^)kstartupinfo\.|\1tdestartupinfo.|g" \
  486. -e "s|([^a-zA-Z0-9]\|-l\|lib\|^)kabc|\1tdeabc|g" \
  487. -e "s|([^a-zA-Z0-9]\|^)makekdewidgets|\1maketdewidgets|g" \
  488. -e "s|([^a-zA-Z0-9]\|^)MAKEKDEWIDGETS|\1MAKETDEWIDGETS|g" \
  489. -e "s|([^a-zA-Z0-9]\|^)kdewidgets|\1tdewidgets|g" \
  490. -e "s|([^a-zA-Z0-9]\|^)Categories=Qt;KDE|\1Categories=Qt;TDE|g" \
  491. -e "s|([^a-zA-Z0-9]\|^)X-KDE-|\1X-TDE-|g" \
  492. \
  493. \
  494. -e "s|kde\.org/tdehotnewstuff|kde.org/khotnewstuff|g" \
  495. -e "s|tdevelop\.org|kdevelop.org|g" \
  496. -e "s|tdewebdev\.org|kdewebdev.org|g" \
  497. -e "s|t(develop[a-z_\-]*@[tk]develop\.org)|k\1|g" \
  498. -e "s|\<tdelistr|klistr|g" \
  499. -e "s|kde toolbar widget|tde toolbar widget|g"
  500. # Convert desktop files
  501. find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -print0 | \
  502. xargs -r0 sed -i \
  503. -e '/^Keyword/ { s,\,,;,g }' \
  504. -e 's/^ServiceTypes=/X-TDE-ServiceTypes=/g' \
  505. -e 's/^ServiceTypes\[\(.*\)\]=/X-TDE-ServiceTypes\[\1\]=/g' \
  506. -e 's/^ExcludeServiceTypes=/X-TDE-ExcludeServiceTypes=/g' \
  507. -e 's/^ExcludeServiceTypes\[\(.*\)\]=/X-TDE-ExcludeServiceTypes\[\1\]=/g' \
  508. -e 's/^DocPath=/X-DocPath=/g' \
  509. -e 's/^DocPath\[\(.*\)\]=/X-DocPath\[\1\]=/g' \
  510. -e 's/^InitialPreference=/X-TDE-InitialPreference=/g' \
  511. -e 's/^InitialPreference\[\(.*\)\]=/X-TDE-InitialPreference\[\1\]=/g'
  512. # Rename files
  513. find . -name "kio_*" | while read f; do mv "${f}" "${f/kio_/tdeio_}"; done
  514. find . -name "kio-*" | while read f; do mv "${f}" "${f/kio-/tdeio-}"; done
  515. find . -name "kio.*" | while read f; do mv "${f}" "${f/kio./tdeio.}"; done
  516. find . -name "*.kdevelop" | while read f; do mv "${f}" "${f/.kdevelop/.tdevelop}"; done
  517. find . -name "kdewidgets*" | while read f; do mv "${f}" "${f/kdewidgets/tdewidgets}"; done
  518. # Update icon names (optional)
  519. $SCRIPTPATH/convert_kde3_icon_names_to_xdg_standards