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

Contents of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Oct 19 19:51:12 2004 UTC (9 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.1: +3 -3 lines
'...' -> ' ...'

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

  ViewVC Help
Powered by ViewVC 1.1.20