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

Diff of /eclass/mozextension.eclass

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

Revision 1.3 Revision 1.4
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.3 2007/03/12 11:57:49 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.4 2007/12/20 15:43:14 armin76 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
15 # You must specify which xpi to use 15 # You must specify which xpi to use
16 [[ -z "$*" ]] && die "Nothing passed to the $FUNCNAME command. please pass which xpi to unpack" 16 [[ -z "$*" ]] && die "Nothing passed to the $FUNCNAME command. please pass which xpi to unpack"
17 17
18 for xpi in "$@"; do 18 for xpi in "$@"; do
19 einfo "Unpacking ${xpi} to ${PWD}" 19 einfo "Unpacking ${xpi} to ${PWD}"
20 xpiname=${xpi%.*} 20 xpiname=$(basename ${xpi%.*})
21 21
22 if [[ "${xpi:0:2}" != "./" ]] ; then 22 if [[ "${xpi:0:2}" != "./" ]] && [[ "${xpi:0:1}" != "/" ]] ; then
23 srcdir="${DISTDIR}/" 23 srcdir="${DISTDIR}/"
24 fi 24 fi
25 25
26 [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist" 26 [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist"
27 27

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

  ViewVC Help
Powered by ViewVC 1.1.20