/[gentoo-x86]/eclass/mozextension.eclass
Gentoo

Diff of /eclass/mozextension.eclass

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/mozextension.eclass,v 1.1 2006/01/08 14:19:53 anarchy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.2 2006/01/08 23:29:20 vivo Exp $
4# 4#
5# mozextention.eclass: installing firefox extensions and language packs 5# mozextention.eclass: installing firefox extensions and language packs
6 6
7inherit eutils 7inherit eutils
8 8
44 44
45 # You must tell xpi_install which xpi to use 45 # You must tell xpi_install which xpi to use
46 [[ ${#} -ne 1 ]] && die "$FUNCNAME takes exactly one argument, please specify an xpi to unpack" 46 [[ ${#} -ne 1 ]] && die "$FUNCNAME takes exactly one argument, please specify an xpi to unpack"
47 47
48 x="${1}" 48 x="${1}"
49 cd ${x} 49 cd ${x}
50 # determine id for extension 50 # determine id for extension
51 emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id" 51 emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id"
52 insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid} 52 insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid}
53 doins -r "${x}"/* || die "failed to copy extension" 53 doins -r "${x}"/* || die "failed to copy extension"
54} 54}

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

  ViewVC Help
Powered by ViewVC 1.1.20