Compare commits

..

21 Commits

Author SHA1 Message Date
Michele Calgaro d19d7e151e
Add kinstance.h --> tdeinstance.h to conversion scripts
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 months ago
Michele Calgaro 1a7fabe6cb
Add guiThread --> coreThread to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 months ago
Michele Calgaro ca3e3d74e5
Add kdesktopfile --> tdedesktopfile to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 months ago
Michele Calgaro 8ccf3b480e
Add ksimpleconfig --> tdesimpleconfig to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
3 months ago
Michele Calgaro 33cacb6e27
Rename kuniqueapplication to tdeuniqueapplication.
This was missed out in commit 4c78743. The class was being renamed but not the header file.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 months ago
Michele Calgaro c806662ee4
Add kstandarddirs --> tdestandarddirs to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro 97eb9ff3ae
Add kglobalaccel.h --> tdeglobalaccel.h to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro 70d5d96c3b
Add kapp --> tdeApp to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Slávek Banko 09da29792f
Add missins backslashes in backporting script.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 months ago
Michele Calgaro c818dd0b9a
Add kcrash --> tdecrash to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro e78f27734e
Add KProcIO --> TDEProcIO to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Michele Calgaro 2cd34c1004
Add kprocctrl --> tdeprocctrl to conversion scripts and to r14.1.x backporting script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Michele Calgaro 50f6e35dd5
Add kprocess --> tdeprocess to kde3 app conversion script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Slávek Banko 46048ac9b5
Update aid for backporting commits:
+ Change usage from comment to here document displayed as a hint
+ Allow to process multiple patches in bulk

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
10 months ago
Michele Calgaro 0636b1ab58
Add script to aid backporting commits to r14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Michele Calgaro 4c78743b4f
kde conversion scripts: add KUniqueApplication and KAppDCOPInterface renaming
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Michele Calgaro 8bd9e8f524
qt conversion scripts: don't use ntq* headers anymore
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Michele Calgaro 02d714dbaf
Remove scripts to create TQt3 from Qt3. Improve Qt3 --> TQt3 app conversion script
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 months ago
Michele Calgaro 0e60f5c683
Remove astyle files since formatting will be done using uncrustify-trinity
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
Slávek Banko 1ccd5c4fa1
create_tarball: Add support for creating tarballs from head on a git tag.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
2 years ago
Slávek Banko 4eebab4010
Allow to determine the target version from the default version in the tde-cmake module.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
2 years ago

@ -103,11 +103,21 @@ KDE_IS_PRELINKED|\
KDE_UTF8_FILENAMES|\ KDE_UTF8_FILENAMES|\
KDESYCOCA|\ KDESYCOCA|\
KApplication|\ KApplication|\
KAppDCOPInterface|\
noKApp|\
KApp|\
kapp|\
TDEApplication::kApplication()|\
KUniqueApplication|\
KCmdLineArgs|\ KCmdLineArgs|\
KInstance|\ KInstance|\
KAboutData|\ KAboutData|\
KCModule|\ KCModule|\
KConfig|\ KConfig|\
KSimpleConfig|\
ksimpleconfig|\
KDesktopFile|\
kdesktopfile|\
KServer|\ KServer|\
KSocket|\ KSocket|\
KIO\.|\ KIO\.|\
@ -192,6 +202,7 @@ kshort|\
kstdaccel|\ kstdaccel|\
kaccel|\ kaccel|\
kaction|\ kaction|\
kcrash|\
kmain|\ kmain|\
ktool|\ ktool|\
kpopup|\ kpopup|\
@ -212,6 +223,10 @@ KAbout|\
KComp|\ KComp|\
KGlobal|\ KGlobal|\
(|the)KProcess|\ (|the)KProcess|\
kprocess|\
kprocctrl|\
KProcIO|\
kprocio|\
KClipboard|\ KClipboard|\
Kwallet|\ Kwallet|\
KWallet|\ KWallet|\
@ -223,6 +238,7 @@ kaboutdialog\.|\
kaboutkde\.|\ kaboutkde\.|\
kcmdlineargs\.|\ kcmdlineargs\.|\
kapplication\.|\ kapplication\.|\
kuniqueapplication\.|\
kstyle\.|\ kstyle\.|\
drawKStylePrimitive|\ drawKStylePrimitive|\
kdiroperator\.|\ kdiroperator\.|\
@ -231,6 +247,7 @@ kmessagebox\.|\
ktempfile\.|\ ktempfile\.|\
kemailsettings\.|\ kemailsettings\.|\
kglobal\.|\ kglobal\.|\
kglobalaccel\.|\
kglobalsettings\.|\ kglobalsettings\.|\
kmenubar\.|\ kmenubar\.|\
kprotocolmanager\.|\ kprotocolmanager\.|\
@ -248,6 +265,8 @@ tdevelop\.org|\
tdewebdev\.org|\ tdewebdev\.org|\
\<tdelistr|\ \<tdelistr|\
kde toolbar widget\ kde toolbar widget\
kstandarddirs\.|\
kinstance\.h|\
)" | )" |
tr "\n" "\0" | tr "\n" "\0" |
xargs -r0 sed -ri \ xargs -r0 sed -ri \
@ -343,13 +362,24 @@ xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|^)KDE_UTF8_FILENAMES|\1TDE_UTF8_FILENAMES|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]\|^)KDESYCOCA|\1TDESYCOCA|g" \
\ \
-e "s|([^a-zA-Z0-9]\|^)TDEApplication::kApplication()|\1tdeApp|g" \
-e "s|([^a-zA-Z0-9]\|^)KApplication|\1TDEApplication|g" \ -e "s|([^a-zA-Z0-9]\|^)KApplication|\1TDEApplication|g" \
-e "s|([^a-zA-Z0-9]\|^)kApplication|\1tdeApplication|g" \
-e "s|([^a-zA-Z0-9]\|^)KUniqueApplication|\1TDEUniqueApplication|g" \
-e "s|([^a-zA-Z0-9]\|^)KAppDCOPInterface|\1TDEAppDCOPInterface|g" \
-e "s|([^a-zA-Z0-9]\|^)KCmdLineArgs|\1TDECmdLineArgs|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]\|^)KInstance|\1TDEInstance|g" \
-e "s|([^a-zA-Z0-9]\|^)KAboutData|\1TDEAboutData|g" \ -e "s|([^a-zA-Z0-9]\|^)KAboutData|\1TDEAboutData|g" \
-e "s|([^a-zA-Z0-9]\|^)noKApp|\1noTDEApp|g" \
-e "s|([^a-zA-Z0-9]\|^)KApp|\1TDEApp|g" \
-e "s|([^a-zA-Z0-9]\|^)kapp|\1tdeApp|g" \
\ \
-e "s|([^a-zA-Z0-9]\|^)KCModule|\1TDECModule|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]\|^)KConfig|\1TDEConfig|g" \
-e "s|([^a-zA-Z0-9]\|^)KSimpleConfig|\1TDESimpleConfig|g" \
-e "s|([^a-zA-Z0-9]\|^)ksimpleconfig|\1tdesimpleconfig|g" \
-e "s|([^a-zA-Z0-9]\|^)KDesktopFile|\1TDEDesktopFile|g" \
-e "s|([^a-zA-Z0-9]\|^)kdesktopfile|\1tdedesktopfile|g" \
-e "s|([^a-zA-Z0-9]\|^)KServer|\1TDEServer|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]\|^)KSocket|\1TDESocket|g" \
-e "s|([^a-zA-Z0-9]\|^)KIO\.|\1TDEIO.|g" \ -e "s|([^a-zA-Z0-9]\|^)KIO\.|\1TDEIO.|g" \
@ -437,6 +467,7 @@ xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|^)kstdaccel|\1tdestdaccel|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]\|^)kaccel|\1tdeaccel|g" \
-e "s|([^a-zA-Z0-9]\|^)kaction|\1tdeaction|g" \ -e "s|([^a-zA-Z0-9]\|^)kaction|\1tdeaction|g" \
-e "s|([^a-zA-Z0-9]\|^)kcrash|\1tdecrash|g" \
-e "s|([^a-zA-Z0-9]\|^)kmain|\1tdemain|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]\|^)ktool|\1tdetool|g" \
-e "s|([^a-zA-Z0-9]\|^)kpopup|\1tdepopup|g" \ -e "s|([^a-zA-Z0-9]\|^)kpopup|\1tdepopup|g" \
@ -458,6 +489,10 @@ xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|^)KComp|\1TDEComp|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]\|^)KGlobal|\1TDEGlobal|g" \
-e "s|([^a-zA-Z0-9]\|the\|^)KProcess|\1TDEProcess|g" \ -e "s|([^a-zA-Z0-9]\|the\|^)KProcess|\1TDEProcess|g" \
-e "s|([^a-zA-Z0-9]\|^)kprocess|\1tdeprocess|g" \
-e "s|([^a-zA-Z0-9]\|^)kprocctrl|\1tdeprocctrl|g" \
-e "s|([^a-zA-Z0-9]\|^)KProcIO|\1TDEProcIO|g" \
-e "s|([^a-zA-Z0-9]\|^)kprocio|\1tdeprocio|g" \
-e "s|([^a-zA-Z0-9]\|^)KClipboard|\1TDEClipboard|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]\|^)KWallet|\1TDEWallet|g" \
@ -472,6 +507,7 @@ xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|^)kaboutkde\.|\1tdeabouttde.|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]\|^)kcmdlineargs\.|\1tdecmdlineargs.|g" \
-e "s|([^a-zA-Z0-9]\|^)kapplication\.|\1tdeapplication.|g" \ -e "s|([^a-zA-Z0-9]\|^)kapplication\.|\1tdeapplication.|g" \
-e "s|([^a-zA-Z0-9]\|^)kuniqueapplication\.|\1tdeuniqueapplication.|g" \
-e "s|([^a-zA-Z0-9]\|^)kstyle\.|\1tdestyle.|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]\|^)drawKStylePrimitive|\1drawTDEStylePrimitive|g" \
\ \
@ -481,6 +517,7 @@ xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|^)ktempfile\.|\1tdetempfile.|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]\|^)kemailsettings\.|\1tdeemailsettings.|g" \
-e "s|([^a-zA-Z0-9]\|^)kglobal\.|\1tdeglobal.|g" \ -e "s|([^a-zA-Z0-9]\|^)kglobal\.|\1tdeglobal.|g" \
-e "s|([^a-zA-Z0-9]\|^)kglobalaccel\.h|\1tdeglobalaccel.h|g" \
-e "s|([^a-zA-Z0-9]\|^)kglobalsettings\.|\1tdeglobalsettings.|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]\|^)kmenubar\.|\1tdemenubar.|g" \
-e "s|([^a-zA-Z0-9]\|^)kprotocolmanager\.|\1tdeprotocolmanager.|g" \ -e "s|([^a-zA-Z0-9]\|^)kprotocolmanager\.|\1tdeprotocolmanager.|g" \
@ -491,6 +528,8 @@ xargs -r0 sed -ri \
-e "s|([^a-zA-Z0-9]\|^)kdewidgets|\1tdewidgets|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]\|^)Categories=Qt;KDE|\1Categories=Qt;TDE|g" \
-e "s|([^a-zA-Z0-9]\|^)X-KDE-|\1X-TDE-|g" \ -e "s|([^a-zA-Z0-9]\|^)X-KDE-|\1X-TDE-|g" \
-e "s|([^a-zA-Z0-9]\|^)kstandarddirs\.|\1tdestandarddirs.|g" \
-e "s|([^a-zA-Z0-9]\|^)kinstance\.h|\1tdeinstance.h|g" \
\ \
\ \
-e "s|kde\.org/tdehotnewstuff|kde.org/khotnewstuff|g" \ -e "s|kde\.org/tdehotnewstuff|kde.org/khotnewstuff|g" \

@ -371,6 +371,15 @@ xargs -r0 sed -i \
-e 's/ubitquitous/ubiquitous/g' \ -e 's/ubitquitous/ubiquitous/g' \
-e 's/unitquifying/uniquifying/g' -e 's/unitquifying/uniquifying/g'
# Additional changes for TDE R14.2.0+
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \
-e "s|\bguiThread\b|coreThread|g" \
-e "s|\bguiThreadAwake\b|coreThreadAwake|g" \
-e "s|\bfinishGuiThread\b|finishCoreThread|g" \
-e "s|\bisGuiThread\b|isCoreThread|g" \
-e "s|\bwakeUpGuiThread\b|wakeUpCoreThread|g"
# Headers # Headers
find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\ find ./ -type f -iname "*" -not -iwholename '*.git*' -print0 |\
xargs -r0 sed -i \ xargs -r0 sed -i \

@ -0,0 +1,94 @@
#!/bin/bash
# Due to the ongoing API renaming in master, backporting commits from master
# to r14.1.x could potentially lead to conflicts, and the probability of that
# happening will keep increasing over time.
# This script is intented to reduce/eliminate those conflicts by undoing the
# API changes done in master.
#
if [ -z "$1" ]; then
cat <<USAGE
Preparing patches for backporting from master to r14.1.x branch.
Usage:
1. save the changes of the commit to backport to a file
git format-patch -1 <commit hash> -o <output_folder>
2. run this script on the saved file
$(basename "$0") <output_folder>/<patch_filename> [...]
3. apply changes to r14.1.x branch
git am <output_folder>/<patch_filename>
4. edit commit message to add cherry pick note under signed off clause
git commit --amend --no-edit -S
and add:
(cherry picked from <commit hash>)
USAGE
exit 1
fi
# TDEUniqueApplication --> KUniqueApplication
sed -i "$@" \
-e "s|TDEUniqueApplication|KUniqueApplication|g" \
-e "s|\btdeuniqueapp|kuniqueapp|g" \
-e "s|\btdeunique_|kunique_|g" \
-e "s|TDEUNIQUEAPP|KUNIQUEAPP|g" \
# TDEAppDCOPInterface --> KAppDCOPInterface
sed -i "$@" \
-e "s|TDEAppDCOPInterface|KAppDCOPInterface|g" \
-e "s|tdeappdcopinterface|kappdcopiface|g" \
-e "s|tdeappdcopiface|kappdcopiface|g" \
-e "s|m_TDEAppDCOPInterface|m_KAppDCOPInterface|g" \
-e "s|TDEAPPDCOP_INTERFACE_H|KAPPDCOP_INTERFACE_H|g" \
# tdeprocctrl --> kprocctrl
# tdeprocess --> kprocess
# TDEProcIO --> KProcIO
sed -i "$@" \
-e "s|tdeprocctrl|kprocctrl|g" \
-e "s|tdeprocess|kprocess|g" \
-e "s|TDEProcIO|KProcIO|g" \
-e "s|tdeprocio|kprocio|g" \
# tdecrash --> kcrash
sed -i "$@" \
-e "s|tdecrash|kcrash|g" \
# tdeapp --> kapp
sed -i "$@" \
-e "s|\btdeApplication\b|kApplication|g" "$1" \
-e "s|\btdeApp\b|kapp|g" "$1" \
-e "s|\bTDEApp\b|KApp|g" "$1" \
-e "s|\bnoTDEApp\b|noKApp|g" "$1" \
# tdeglobalaccel.h --> kglobalaccel.h
sed -i "$@" \
-e "s|\btdeglobalaccel\.h\b|kglobalaccel.h|g" "$1" \
# tdestandarddirs.h --> kstandarddirs.h
sed -i "$@" \
-e "s|\btdestandarddirs\.h\b|kstandarddirs.h|g" "$1" \
# tdesimpleconfig --> ksimpleconfig
# TDESimpleConfig --> KSimpleConfig
sed -i "$@" \
-e "s|tdesimpleconfig|ksimpleconfig|g" "$1" \
-e "s|TDESimpleConfig|KSimpleConfig|g" "$1" \
# tdedesktopfile --> kdesktopfile
# TDEDesktopFile --> KDesktopFile
sed -i "$@" \
-e "s|tdedesktopfile|kdesktopfile|g" "$1" \
-e "s|TDEDesktopFile|KDesktopFile|g" "$1" \
# coreThread --> guiThread
sed -i "$@" \
-e "s|\bcoreThread\b|guiThread|g" "$1" \
-e "s|\bcoreThreadAwake\b|guiThreadAwake|g" "$1" \
-e "s|\bfinishCoreThread\b|finishGuiThread|g" "$1" \
-e "s|\bisCoreThread\b|isGuiThread|g" "$1" \
-e "s|\bwakeUpCoreThread\b|wakeUpGuiThread|g" "$1" \
Loading…
Cancel
Save