diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2012-12-17 03:28:38 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-12-17 03:28:38 +0100 |
commit | 53a83b95b662795e0e56bc35567e2d888220e91b (patch) | |
tree | 9f0e8356ca19800556cd561e16c11efbf765652c /migratekde3 | |
parent | 48724f4bf87cfca6342bd426c18a97f5b1d0ec8b (diff) | |
download | tdebase-53a83b95b662795e0e56bc35567e2d888220e91b.tar.gz tdebase-53a83b95b662795e0e56bc35567e2d888220e91b.zip |
Update migratekde3: pass to sed only files that need to be modified
Diffstat (limited to 'migratekde3')
-rwxr-xr-x | migratekde3 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/migratekde3 b/migratekde3 index 3da1bef09..9eb0557d6 100755 --- a/migratekde3 +++ b/migratekde3 @@ -277,6 +277,7 @@ if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then -path $HOME/.trinity/share/apps/knotes -prune -o \ -path $HOME/.trinity/share/apps/kopete/logs -prune -o \ -type f -print0 | \ + xargs -r0 grep -ZIFl "/${KDE3_PROFILE}" | \ xargs -r0 sed -i "s|/${KDE3_PROFILE_R}|/\.trinity|g" EXIT_CODE="$?" if [ "$EXIT_CODE" = "0" ]; then @@ -302,6 +303,7 @@ if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then -path $HOME/.trinity/share/apps/knotes -prune -o \ -path $HOME/.trinity/share/apps/kopete/logs -prune -o \ -type f -print0 | \ + xargs -r0 grep -ZIFl "/opt/kde/" | \ xargs -r0 sed -i "s|/opt/kde/|${TDEDIR}/|g" EXIT_CODE_1="$?" find $HOME/.trinity \ @@ -317,6 +319,7 @@ if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then -path $HOME/.trinity/share/apps/knotes -prune -o \ -path $HOME/.trinity/share/apps/kopete/logs -prune -o \ -type f -print0 | \ + xargs -r0 grep -ZIFl "/opt/kde3/" | \ xargs -r0 sed -i "s|/opt/kde3/|${TDEDIR}/|g" EXIT_CODE_2="$?" if [ "$EXIT_CODE_1" = "0" ] && [ "$EXIT_CODE_2" = "0" ]; then @@ -344,6 +347,7 @@ if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then -path $HOME/.trinity/share/apps/knotes -prune -o \ -path $HOME/.trinity/share/apps/kopete/logs -prune -o \ -type f -print0 | \ + xargs -r0 grep -ZIFl "/usr/share/" | \ xargs -r0 sed -i "s|/usr/share/|${TDEDIR}/share/|g" if [ "$?" = "0" ]; then if [ "$FIREFOX_PNG_LOCATION" != "" ]; then @@ -363,6 +367,7 @@ if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then # This needs improvement for apps not in /usr/bin. echo "Attempting to update *.desktop files in Autostart." 1>&2 find $HOME/.trinity/Autostart -! -type l -type f -print0 | \ + xargs -r0 grep -ZIFl "/usr/bin/" | \ xargs -r0 sed -i "s|/usr/bin/|${TDEDIR}/bin/|g" echo "Attempting to update sym links in Autostart." 1>&2 ( cd $HOME/.trinity/Autostart |