#!/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 < -o 2. run this script on the saved file $(basename "$0") / [...] 3. apply changes to r14.1.x branch git am / 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 sed -i "$@" \ -e "s|tdeprocctrl|kprocctrl|g" \ -e "s|tdeprocess|kprocess|g"