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

Contents of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Tue May 6 08:11:45 2008 UTC (6 years, 2 months ago) by pva
Branch: MAIN
Changes since 1.6: +14 -15 lines
make fdo-mime.eclass ready for eclass-manpages, bug #211223, thank mren for report. foser retired moved maintaining to freedesktop-bugs.

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

  ViewVC Help
Powered by ViewVC 1.1.20