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

Contents of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Wed Jul 6 20:20:03 2005 UTC (9 years ago) by agriffis
Branch: MAIN
Changes since 1.2: +1 -2 lines
Remove ECLASS= and INHERITED= which haven't been necessary for a long time now

1 foser 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.3 # $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.2 2004/10/19 19:51:12 vapier 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     INHERITED="$INHERITED $ECLASS"
12    
13     # Updates the desktop database
14     # Generates a list of mimetypes linked to applications that can handle them
15    
16     fdo-mime_desktop_database_update() {
17    
18     if [ -x ${ROOT}/usr/bin/update-desktop-database ]
19     then
20 vapier 1.2 einfo "Updating desktop mime database ..."
21 foser 1.1 update-desktop-database -q /usr/share/applications
22     fi
23    
24     }
25    
26     # Update the mime database
27     # Creates a general list of mime types from several sources
28    
29     fdo-mime_mime_database_update() {
30    
31     if [ -x ${ROOT}/usr/bin/update-mime-database ]
32     then
33 vapier 1.2 einfo "Updating shared mime info database ..."
34 foser 1.1 update-mime-database /usr/share/mime
35     fi
36    
37     }

  ViewVC Help
Powered by ViewVC 1.1.20