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

Diff of /eclass/mozextension.eclass

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

Revision 1.4 Revision 1.5
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.4 2007/12/20 15:43:14 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.5 2010/12/30 03:06:04 anarchy 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
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 '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${x}"/install.rdf)" \
52 || die "failed to determine extension id"
52 insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid} 53 insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid}
53 doins -r "${x}"/* || die "failed to copy extension" 54 doins -r "${x}"/* || die "failed to copy extension"
54} 55}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20