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

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

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
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-mime ('k') | third_party/xdg-utils/scripts/xdg-screensaver » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 umask $save_umask 656 umask $save_umask
657 ;; 657 ;;
658 658
659 uninstall) 659 uninstall)
660 for x in $xdg_dir ; do 660 for x in $xdg_dir ; do
661 rm -f $x/$basefile 661 rm -f $x/$basefile
662 done 662 done
663 663
664 # No quotes around $mimetypes 664 # No quotes around $mimetypes
665 for x in $mimetypes ; do 665 for x in $mimetypes ; do
666 if grep '^# Installed by xdg-mime' $kde_dir/$x.desktop &>/dev/null ; then 666 if grep '^# Installed by xdg-mime' $kde_dir/$x.desktop >/dev/null 2> &1; then
667 DEBUG 1 "Removing $kde_dir/$x.desktop (KDE 3.x support)" 667 DEBUG 1 "Removing $kde_dir/$x.desktop (KDE 3.x support)"
668 rm -f $kde_dir/$x.desktop 668 rm -f $kde_dir/$x.desktop
669 fi 669 fi
670 done 670 done
671 ;; 671 ;;
672 esac 672 esac
673 673
674 update_mime_database $xdg_base_dir 674 update_mime_database $xdg_base_dir
675 675
676 exit_success 676 exit_success
677 677
OLDNEW
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-mime ('k') | third_party/xdg-utils/scripts/xdg-screensaver » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698