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

Diff of /eclass/mozextension.eclass

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

Revision 1.6 Revision 1.7
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2011 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.6 2011/10/31 12:28:14 anarchy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.7 2011/12/27 17:55:12 fauli Exp $
4# 4#
5# @ECLASS: mozextension.eclass 5# @ECLASS: mozextension.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Mozilla team <mozilla@gentoo.org> 7# Mozilla team <mozilla@gentoo.org>
8# @DESCRIPTION: 8# @DESCRIPTION:
31 [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist" 31 [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist"
32 32
33 case "${xpi##*.}" in 33 case "${xpi##*.}" in
34 ZIP|zip|jar|xpi) 34 ZIP|zip|jar|xpi)
35 mkdir "${WORKDIR}/${xpiname}" && \ 35 mkdir "${WORKDIR}/${xpiname}" && \
36 unzip -qo "${srcdir}${xpi}" -d "${WORKDIR}/${xpiname}" || die "failed to unpack ${xpi}" 36 unzip -qo "${srcdir}${xpi}" -d "${WORKDIR}/${xpiname}" || die "failed to unpack ${xpi}"
37 ;; 37 ;;
38 *) 38 *)
39 einfo "unpack ${xpi}: file format not recognized. Ignoring." 39 einfo "unpack ${xpi}: file format not recognized. Ignoring."
40 ;; 40 ;;
41 esac 41 esac

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20