Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/xdg-utils/scripts/xdg-mime

Issue 159433: Bring xdg-utils up to date as of 2009-07-27. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 #--------------------------------------------- 2 #---------------------------------------------
3 # xdg-mime 3 # xdg-mime
4 # 4 #
5 # Utility script to manipulate MIME related information 5 # Utility script to manipulate MIME related information
6 # on XDG compliant systems. 6 # on XDG compliant systems.
7 # 7 #
8 # Refer to the usage() function below for usage. 8 # Refer to the usage() function below for usage.
9 # 9 #
10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> 10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at>
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 umask $save_umask 1074 umask $save_umask
1075 ;; 1075 ;;
1076 1076
1077 uninstall) 1077 uninstall)
1078 for x in $xdg_dir ; do 1078 for x in $xdg_dir ; do
1079 rm -f $x/$basefile 1079 rm -f $x/$basefile
1080 done 1080 done
1081 1081
1082 # No quotes around $mimetypes 1082 # No quotes around $mimetypes
1083 for x in $mimetypes ; do 1083 for x in $mimetypes ; do
1084 if grep '^# Installed by xdg-mime' $kde_dir/$x.desktop &>/dev/null ; then 1084 if grep '^# Installed by xdg-mime' $kde_dir/$x.desktop >/dev/null 2> &1; then
1085 DEBUG 1 "Removing $kde_dir/$x.desktop (KDE 3.x support)" 1085 DEBUG 1 "Removing $kde_dir/$x.desktop (KDE 3.x support)"
1086 rm -f $kde_dir/$x.desktop 1086 rm -f $kde_dir/$x.desktop
1087 fi 1087 fi
1088 done 1088 done
1089 ;; 1089 ;;
1090 esac 1090 esac
1091 1091
1092 update_mime_database $xdg_base_dir 1092 update_mime_database $xdg_base_dir
1093 1093
1094 exit_success 1094 exit_success
1095 1095
OLDNEW
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-icon-resource.in ('k') | third_party/xdg-utils/scripts/xdg-mime.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698