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

Contents of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Sep 14 12:10:22 2004 UTC (9 years, 9 months ago) by foser
Branch: MAIN
add fdo-mime eclass & update gnome2 eclass to use it

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.44 2004/07/23 04:52:37 obz Exp $
4
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 einfo "Updating desktop mime database..."
22 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 einfo "Updating shared mime info database..."
35 update-mime-database /usr/share/mime
36 fi
37
38 }

  ViewVC Help
Powered by ViewVC 1.1.20