diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-24 23:26:39 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-24 23:26:39 -0500 |
commit | af6429be0097f4e83552d62b4bed3774b03d194d (patch) | |
tree | 128e22dbf48af7a81308813ac6dec6a90e51d84d | |
parent | 2bd8c66a5f5980276a78a360f31f74e51fd8642e (diff) | |
download | experimental-af6429be0097f4e83552d62b4bed3774b03d194d.tar.gz experimental-af6429be0097f4e83552d62b4bed3774b03d194d.zip |
Fix stragglers that were not properly renamed in the XDG standardization commits
-rwxr-xr-x | kde-tde/convert_kde3_icon_names_to_xdg_standards | 342 | ||||
-rwxr-xr-x | kde-tde/tde_action_conversion | 156 |
2 files changed, 157 insertions, 341 deletions
diff --git a/kde-tde/convert_kde3_icon_names_to_xdg_standards b/kde-tde/convert_kde3_icon_names_to_xdg_standards index 64afa91..bd97391 100755 --- a/kde-tde/convert_kde3_icon_names_to_xdg_standards +++ b/kde-tde/convert_kde3_icon_names_to_xdg_standards @@ -8,345 +8,5 @@ # Hand editing will likely be required after running to ensure all icon names have been updated # See http://trinity.etherpad.trinitydesktop.org/60 for a mapping of old KDE3 names to modern XDG names -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("previous")/SmallIconSet("go-previous")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "previous" )/SmallIconSet( "go-previous" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("next")/SmallIconSet("go-next")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "next" )/SmallIconSet( "go-next" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("previous")/SmallIcon("go-previous")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "previous" )/SmallIcon( "go-previous" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("next")/SmallIcon("go-next")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "next" )/SmallIcon( "go-next" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("previous"/loadIcon(""go-previous"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "previous"/loadIcon( ""go-previous"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("next"/loadIcon("go-next"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "next"/loadIcon( "go-next"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("start")/SmallIconSet("go-first")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "start" )/SmallIconSet( "go-first" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("finish")/SmallIconSet("go-last")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "finish" )/SmallIconSet( "go-last" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("start")/SmallIcon("go-first")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "start" )/SmallIcon( "go-first" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("finish")/SmallIcon("go-last")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "finish" )/SmallIcon( "go-last" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("start"/loadIcon("go-first"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "start"/loadIcon( "go-first"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("finish"/loadIcon("go-last"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "finish"/loadIcon( "go-last"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("stop")/SmallIconSet("process-stop")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "stop" )/SmallIconSet( "process-stop" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("lock")/SmallIconSet("system-lock-screen")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "lock" )/SmallIconSet( "system-lock-screen" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("stop")/SmallIcon("process-stop")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "stop" )/SmallIcon( "process-stop" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("lock")/SmallIcon("system-lock-screen")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "lock" )/SmallIcon( "system-lock-screen" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("stop"/loadIcon("process-stop"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "stop"/loadIcon( "process-stop"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("lock"/loadIcon("system-lock-screen"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "lock"/loadIcon( "system-lock-screen"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("exit")/SmallIconSet("system-log-out")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "exit" )/SmallIconSet( "system-log-out" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("run")/SmallIconSet("system-run")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "run" )/SmallIconSet( "system-run" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("exit")/SmallIcon("system-log-out")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "exit" )/SmallIcon( "system-log-out" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("run")/SmallIcon("system-run")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "run" )/SmallIcon( "system-run" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("exit"/loadIcon("system-log-out"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "exit"/loadIcon( "system-log-out"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("run"/loadIcon("system-run"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "run"/loadIcon( "system-run"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("up")/SmallIconSet("go-up")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "up" )/SmallIconSet( "go-up" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("down")/SmallIconSet("go-down")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "down" )/SmallIconSet( "go-down" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("up")/SmallIcon("go-up")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "up" )/SmallIcon( "go-up" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("down")/SmallIcon("go-down")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "down" )/SmallIcon( "go-down" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("up"/loadIcon("go-up"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "up"/loadIcon( "go-up"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("down"/loadIcon("go-down"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "down"/loadIcon( "go-down"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("top")/SmallIconSet("go-top")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "top" )/SmallIconSet( "go-top" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("bottom")/SmallIconSet("go-bottom")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "bottom" )/SmallIconSet( "go-bottom" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("top")/SmallIcon("go-top")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "top" )/SmallIcon( "go-top" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("bottom")/SmallIcon("go-bottom")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "bottom" )/SmallIcon( "go-bottom" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("top"/loadIcon("go-top"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "top"/loadIcon( "go-top"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("bottom"/loadIcon("go-bottom"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "bottom"/loadIcon( "go-bottom"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("undo")/SmallIconSet("edit-undo")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "undo" )/SmallIconSet( "edit-undo" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("redo")/SmallIconSet("edit-redo")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "redo" )/SmallIconSet( "edit-redo" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("undo")/SmallIcon("edit-undo")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "undo" )/SmallIcon( "edit-undo" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("redo")/SmallIcon("edit-redo")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "redo" )/SmallIcon( "edit-redo" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("undo"/loadIcon("edit-undo"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "undo"/loadIcon( "edit-undo"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("redo"/loadIcon("edit-redo"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "redo"/loadIcon( "edit-redo"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("find")/SmallIconSet("edit-find")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "find" )/SmallIconSet( "edit-find" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("revert")/SmallIconSet("document-revert")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "revert" )/SmallIconSet( "document-revert" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("find")/SmallIcon("edit-find")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "find" )/SmallIcon( "edit-find" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("revert")/SmallIcon("document-revert")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "revert" )/SmallIcon( "document-revert" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("find"/loadIcon("edit-find"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "find"/loadIcon( "edit-find"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("revert"/loadIcon("document-revert"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "revert"/loadIcon( "document-revert"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"filenew"/"document-new"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"filenew"/"document-new"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"fileopen"/"document-open"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"fileopen"/"document-open"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"fileprint"/"document-print"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"fileprint"/"document-print"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"filequickprint"/"document-print-preview"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"filequickprint"/"document-print-preview"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"filesave"/"document-save"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"filesave"/"document-save"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"filesaveas"/"document-save-as"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"filesaveas"/"document-save-as"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"fileclose"/"window-close"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"fileclose"/"window-close"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"editclear"/"edit-clear"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"editclear"/"edit-clear"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"editcopy"/"edit-copy"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"editcopy"/"edit-copy"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"editcut"/"edit-cut"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"editcut"/"edit-cut"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"editdelete"/"edit-delete"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"editdelete"/"edit-delete"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"editpaste"/"edit-paste"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"editpaste"/"edit-paste"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"folder_new"/"folder-new"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"folder_new"/"folder-new"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"gohome"/"go-home"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"gohome"/"go-home"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"mail_forward"/"mail-forward"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"mail_forward"/"mail-forward"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"mail_new"/"mail-message-new"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"mail_new"/"mail-message-new"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"mail_replyall"/"mail-reply-all"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"mail_replyall"/"mail-reply-all"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"mail_reply"/"mail-reply-sender"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"mail_reply"/"mail-reply-sender"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"mail_send"/"mail-send"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"mail_send"/"mail-send"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_pause"/"media-playback-pause"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_pause"/"media-playback-pause"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_play"/"media-playback-start"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_play"/"media-playback-start"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_stop"/"media-playback-stop"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_stop"/"media-playback-stop"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_rew"/"media-seek-backward"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_rew"/"media-seek-backward"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_fwd"/"media-seek-forward"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_fwd"/"media-seek-forward"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_start"/"media-skip-backward"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_start"/"media-skip-backward"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"player_end"/"media-skip-forward"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"player_end"/"media-skip-forward"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"rotate_ccw"/"object-rotate-left"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"rotate_ccw"/"object-rotate-left"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"rotate_cw"/"object-rotate-right"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"rotate_cw"/"object-rotate-right"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"window_fullscreen"/"view-fullscreen"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"window_fullscreen"/"view-fullscreen"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"window_nofullscreen"/"view-restore"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"window_nofullscreen"/"view-restore"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"window_new"/"window-new"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"window_new"/"window-new"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"viewmagfit"/"zoom-fit-best"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"viewmagfit"/"zoom-fit-best"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"viewmag+"/"zoom-in"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"viewmag+"/"zoom-in"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"viewmag1"/"zoom-original"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"viewmag1"/"zoom-original"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"viewmag-"/"zoom-out"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"viewmag-"/"zoom-out"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("unindent")/SmallIconSet("format-indent-less")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "unindent" )/SmallIconSet( "format-indent-less" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("indent")/SmallIconSet("format-indent-more")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "indent" )/SmallIconSet( "format-indent-more" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("unindent")/SmallIcon("format-indent-less")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "unindent" )/SmallIcon( "format-indent-less" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("indent")/SmallIcon("format-indent-more")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "indent" )/SmallIcon( "format-indent-more" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("unindent"/loadIcon("format-indent-less"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "unindent"/loadIcon( "format-indent-less"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("indent"/loadIcon("format-indent-more"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "indent"/loadIcon( "format-indent-more"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"centrejust"/"format-justify-center"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"centrejust"/"format-justify-center"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"leftjust"/"format-justify-left"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"leftjust"/"format-justify-left"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"rightjust"/"format-justify-right"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"rightjust"/"format-justify-right"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"text_left"/"format-text-direction-ltr"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"text_left"/"format-text-direction-ltr"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"text_right"/"format-text-direction-rtl"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"text_right"/"format-text-direction-rtl"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"text_bold"/"format-text-bold"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"text_bold"/"format-text-bold"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"text_italic"/"format-text-italic"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"text_italic"/"format-text-italic"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"text_under"/"format-text-underline"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"text_under"/"format-text-underline"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"text_strike"/"format-text-strikethrough"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"text_strike"/"format-text-strikethrough"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"spellcheck"/"tools-check-spelling"/g' {} \; -find ./ -type f -iname "*.h*" -not -iwholename '*.git*' -exec sed -i 's/"spellcheck"/"tools-check-spelling"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_development"/"applications-development"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_games"/"applications-games"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_graphics"/"applications-graphics"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_network"/"applications-internet"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_multimedia"/"applications-multimedia"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_wordprocessing"/"applications-office"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"edu_science"/"applications-science"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"package_utilities"/"applications-utilities"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"input_devices_settings"/"preferences-desktop-peripherals"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/"kcmsystem"/"preferences-system"/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("personal")/SmallIconSet("preferences-desktop-personal")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "personal" )/SmallIconSet( "preferences-desktop-personal" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet("looknfeel")/SmallIconSet("preferences-desktop")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIconSet( "looknfeel" )/SmallIconSet( "preferences-desktop" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("personal")/SmallIcon("preferences-desktop-personal")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "personal" )/SmallIcon( "preferences-desktop-personal" )/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon("looknfeel")/SmallIcon("preferences-desktop")/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/SmallIcon( "looknfeel" )/SmallIcon( "preferences-desktop" )/g' {} \; - -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("personal"/loadIcon("preferences-desktop-personal"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "personal"/loadIcon( "preferences-desktop-personal"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon("looknfeel"/loadIcon("preferences-desktop"/g' {} \; -find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i 's/loadIcon( "looknfeel"/loadIcon( "preferences-desktop"/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_development/Icon=applications-development/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_development/Icon=applications-development/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_games/Icon=applications-games/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_games/Icon=applications-games/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_graphics/Icon=applications-graphics/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_graphics/Icon=applications-graphics/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_network/Icon=applications-internet/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_network/Icon=applications-internet/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_multimedia/Icon=applications-multimedia/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_multimedia/Icon=applications-multimedia/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_wordprocessing/Icon=applications-office/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_wordprocessing/Icon=applications-office/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=edu_science/Icon=applications-science/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=edu_science/Icon=applications-science/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_utilities/Icon=applications-utilities/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=package_utilities/Icon=applications-utilities/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=looknfeel/Icon=preferences-desktop/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=looknfeel/Icon=preferences-desktop/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=input_devices_settings/Icon=preferences-desktop-peripherals/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=input_devices_settings/Icon=preferences-desktop-peripherals/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=personal/Icon=preferences-desktop-personal/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=personal/Icon=preferences-desktop-personal/g' {} \; - -find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i 's/Icon=kcmsystem/Icon=preferences-system/g' {} \; -find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/Icon=kcmsystem/Icon=preferences-system/g' {} \; - ./tde_mimetype_conversion +./tde_action_conversion
\ No newline at end of file diff --git a/kde-tde/tde_action_conversion b/kde-tde/tde_action_conversion new file mode 100755 index 0000000..1fdb2ee --- /dev/null +++ b/kde-tde/tde_action_conversion @@ -0,0 +1,156 @@ +#!/bin/bash +# +# (c) 2014 Timothy Pearson +# All Rights Reserved +# +# WARNING +# This script is not complete! +# Hand editing will likely be required after running to ensure all icon names have been updated +# See http://trinity.etherpad.trinitydesktop.org/60 for a mapping of old KDE3 names to modern XDG names + +WORKDIR=$PWD + +function rename_files { + echo '#!/bin/bash' > /tmp/rename_action_files + echo '' >> /tmp/rename_action_files + echo 'cd $1' >> /tmp/rename_action_files + echo '' >> /tmp/rename_action_files + echo 'BASEDIR=${PWD##*/}' >> /tmp/rename_action_files + echo "ORIGNAME='$1'" >> /tmp/rename_action_files + echo "NEWNAME='$2'" >> /tmp/rename_action_files + echo '' >> /tmp/rename_action_files + echo 'if [[ "$BASEDIR" == ".git" ]]; then' >> /tmp/rename_action_files + echo ' echo "Ignoring .git directory"' >> /tmp/rename_action_files + echo ' exit 0' >> /tmp/rename_action_files + echo 'fi' >> /tmp/rename_action_files + echo '' >> /tmp/rename_action_files + echo 'ls -d * | sed "s/\(.*\)action-$ORIGNAME\.png\(.*\)$/git mv \"&\" \"\1action-$NEWNAME\.png\2\"/" | grep mv | sh' >> /tmp/rename_action_files + echo 'ls -d * | sed "s/$ORIGNAME\.png\(.*\)$/git mv \"&\" \"$NEWNAME\.png\1\"/" | grep mv | sh' >> /tmp/rename_action_files + chmod 755 /tmp/rename_action_files + + find ./ -type d -exec /tmp/rename_action_files {} \; &> /dev/null + + rm /tmp/rename_action_files +} + +function convert_files { + cd ~/tde-git/tde/main + + echo "===================================================" + echo "Converting $1..." + + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/IconSet(\"$1\"/IconSet(\"$2\"/g" {} \; + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/IconSet( \"$1\"/IconSet( \"$2\"/g" {} \; + + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/Icon(\"$1\"/Icon(\"$2\"/g" {} \; + find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/Icon( \"$1\"/Icon( \"$2\"/g" {} \; + + find ./ -type f -iname "*.directory" -not -iwholename '*.git*' -exec sed -i "s/Icon=$1/Icon=$2/g" {} \; + find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i "s/Icon=$1/Icon=$2/g" {} \; + find ./ -type f -iname "*.protocol" -not -iwholename '*.git*' -exec sed -i "s/Icon=$1/Icon=$2/g" {} \; + + echo "===================================================" + echo "Renaming $1..." + cd $WORKDIR/tdelibs/pics + rename_files $1 $2 + cd $WORKDIR/tdeartwork/IconThemes + rename_files $1 $2 + cd $WORKDIR/tdeaccessibility/IconThemes + rename_files $1 $2 + cd $WORKDIR + echo "===================================================" + + echo "Still found in files:" + echo "===================================================" + find . -not -iwholename '*.git*' | xargs grep "\"$1\"" -sl + echo "===================================================" + echo "" +} + +convert_files "previous" "go-previous" +convert_files "next" "go-next" +convert_files "start" "go-first" +convert_files "finish" "go-last" +convert_files "stop" "process-stop" +convert_files "lock" "system-lock-screen" +convert_files "exit" "system-log-out" +convert_files "run" "system-run" +convert_files "up" "go-up" +convert_files "down" "go-down" +convert_files "top" "go-top" +convert_files "bottom" "go-bottom" +convert_files "undo" "edit-undo" +convert_files "redo" "edit-redo" +convert_files "find" "edit-find" +convert_files "revert" "document-revert" +convert_files "filenew" "document-new" +convert_files "fileopen" "document-open" +convert_files "fileprint" "document-print" +convert_files "filequickprint" "document-print-preview" +convert_files "filesave" "document-save" +convert_files "filesaveas" "document-save-as" +convert_files "fileclose" "window-close" +convert_files "editclear" "edit-clear" +convert_files "editcopy" "edit-copy" +convert_files "editcut" "edit-cut" +convert_files "editdelete" "edit-delete" +convert_files "editpaste" "edit-paste" +convert_files "folder_new" "folder-new" +convert_files "gohome" "go-home" +convert_files "mail_forward" "mail-forward" +convert_files "mail_new" "mail-message-new" +convert_files "mail_replyall" "mail-reply-all" +convert_files "mail_reply" "mail-reply-sender" +convert_files "mail_send" "mail-send" +convert_files "player_pause" "media-playback-pause" +convert_files "player_play" "media-playback-start" +convert_files "player_stop" "media-playback-stop" +convert_files "player_rew" "media-seek-backward" +convert_files "player_fwd" "media-seek-forward" +convert_files "player_start" "media-skip-backward" +convert_files "player_end" "media-skip-forward" +convert_files "rotate_ccw" "object-rotate-left" +convert_files "rotate_cw" "object-rotate-right" +convert_files "window_fullscreen" "view-fullscreen" +convert_files "window_nofullscreen" "view-restore" +convert_files "window_new" "window-new" +convert_files "viewmagfit" "zoom-fit-best" +convert_files "viewmag+" "zoom-in" +convert_files "viewmag1" "zoom-original" +convert_files "viewmag-" "zoom-out" +convert_files "unindent" "format-indent-less" +convert_files "indent" "format-indent-more" +convert_files "centrejust" "format-justify-center" +convert_files "leftjust" "format-justify-left" +convert_files "rightjust" "format-justify-right" +convert_files "text_left" "format-text-direction-ltr" +convert_files "text_right" "format-text-direction-rtl" +convert_files "text_bold" "format-text-bold" +convert_files "text_italic" "format-text-italic" +convert_files "text_under" "format-text-underline" +convert_files "text_strike" "format-text-strikethrough" +convert_files "spellcheck" "tools-check-spelling" +convert_files "package_development" "applications-development" +convert_files "package_games" "applications-games" +convert_files "package_graphics" "applications-graphics" +convert_files "package_network" "applications-internet" +convert_files "package_multimedia" "applications-multimedia" +convert_files "package_wordprocessing" "applications-office" +convert_files "edu_science" "applications-science" +convert_files "package_utilities" "applications-utilities" +convert_files "input_devices_settings" "preferences-desktop-peripherals" +convert_files "kcmsystem" "preferences-system" +convert_files "personal" "preferences-desktop-personal" +convert_files "looknfeel" "preferences-desktop" +convert_files "package_development" "applications-development" +convert_files "package_games" "applications-games" +convert_files "package_graphics" "applications-graphics" +convert_files "package_network" "applications-internet" +convert_files "package_multimedia" "applications-multimedia" +convert_files "package_wordprocessing" "applications-office" +convert_files "edu_science" "applications-science" +convert_files "package_utilities" "applications-utilities" +convert_files "looknfeel" "preferences-desktop" +convert_files "input_devices_settings" "preferences-desktop-peripherals" +convert_files "personal" "preferences-desktop-personal" +convert_files "kcmsystem" "preferences-system" |