Fix remaining issues from mimetype icon rename

pull/1/head
Timothy Pearson 10 years ago
parent 81d06dbbc4
commit 4201f5a67b

@ -39,20 +39,11 @@ function convert_files {
echo "==================================================="
echo "Converting $1..."
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIconSet(\"$1\"/SmallIconSet(\"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIconSet( \"$1\"/SmallIconSet( \"$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/IconSet( \"$1\"/IconSet( \"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIcon(\"$1\"/SmallIcon(\"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/SmallIcon( \"$1\"/SmallIcon( \"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/DesktopIcon(\"$1\"/DesktopIcon(\"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/DesktopIcon( \"$1\"/DesktopIcon( \"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/BarIcon(\"$1\"/BarIcon(\"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/BarIcon( \"$1\"/BarIcon( \"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/loadIcon(\"$1\"/loadIcon(\"\"$2\"/g" {} \;
find ./ -type f -iname "*.c*" -not -iwholename '*.git*' -exec sed -i "s/loadIcon( \"$1\"/loadIcon( \"\"$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" {} \;
@ -161,7 +152,6 @@ convert_files "tex" "text-x-tex"
convert_files "tgz" "application-x-tarz"
convert_files "txt2" "application-vnd\.tde\.text\.alt"
convert_files "txt" "text-plain"
convert_files "unknown" "text-x-katefilelist"
convert_files "vectorgfx" "image-svg+xml"
convert_files "widget_doc" "application-x-designer"
convert_files "wordprocessing" "application-vnd\.oasis\.opendocument\.text"

Loading…
Cancel
Save