/[gentoo-x86]/eclass/fdo-mime.eclass
Gentoo

Diff of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.1.1.1
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.1 2004/09/14 12:10:22 foser Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.1.1.1 2005/11/30 09:59:19 chriswhite Exp $
4 4
5# Author: 5# Author:
6# foser <foser@gentoo.org> 6# foser <foser@gentoo.org>
7 7
8# utility eclass to update the desktop mime info as laid out in the freedesktop specs & implementations 8# utility eclass to update the desktop mime info as laid out in the freedesktop specs & implementations
9# <references here> 9# <references here>
10 10
11ECLASS="fdo-mime"
12INHERITED="$INHERITED $ECLASS"
13 11
14# Updates the desktop database 12# Updates the desktop database
15# Generates a list of mimetypes linked to applications that can handle them 13# Generates a list of mimetypes linked to applications that can handle them
16 14
17fdo-mime_desktop_database_update() { 15fdo-mime_desktop_database_update() {
18 16
19 if [ -x ${ROOT}/usr/bin/update-desktop-database ] 17 if [ -x ${ROOT}/usr/bin/update-desktop-database ]
20 then 18 then
21 einfo "Updating desktop mime database..." 19 einfo "Updating desktop mime database ..."
22 update-desktop-database -q /usr/share/applications 20 update-desktop-database -q /usr/share/applications
23 fi 21 fi
24 22
25} 23}
26 24
29 27
30fdo-mime_mime_database_update() { 28fdo-mime_mime_database_update() {
31 29
32 if [ -x ${ROOT}/usr/bin/update-mime-database ] 30 if [ -x ${ROOT}/usr/bin/update-mime-database ]
33 then 31 then
34 einfo "Updating shared mime info database..." 32 einfo "Updating shared mime info database ..."
35 update-mime-database /usr/share/mime 33 update-mime-database /usr/share/mime
36 fi 34 fi
37 35
38} 36}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.1.1

  ViewVC Help
Powered by ViewVC 1.1.20