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

Diff of /eclass/unpacker.eclass

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

Revision 1.12 Revision 1.13
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/unpacker.eclass,v 1.12 2013/03/23 21:18:25 hasufell Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.13 2013/04/10 14:47:49 jer Exp $
4 4
5# @ECLASS: unpacker.eclass 5# @ECLASS: unpacker.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs 8# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs
176 if [[ -z ${skip} ]] ; then 176 if [[ -z ${skip} ]] ; then
177 local ver=$(grep -m1 -a '#.*Makeself' "${src}" | awk '{print $NF}') 177 local ver=$(grep -m1 -a '#.*Makeself' "${src}" | awk '{print $NF}')
178 local skip=0 178 local skip=0
179 exe=tail 179 exe=tail
180 case ${ver} in 180 case ${ver} in
181 1.5.*|1.6.0-nv) # tested 1.5.{3,4,5} ... guessing 1.5.x series is same 181 1.5.*|1.6.0-nv*) # tested 1.5.{3,4,5} ... guessing 1.5.x series is same
182 skip=$(grep -a ^skip= "${src}" | cut -d= -f2) 182 skip=$(grep -a ^skip= "${src}" | cut -d= -f2)
183 ;; 183 ;;
184 2.0|2.0.1) 184 2.0|2.0.1)
185 skip=$(grep -a ^$'\t'tail "${src}" | awk '{print $2}' | cut -b2-) 185 skip=$(grep -a ^$'\t'tail "${src}" | awk '{print $2}' | cut -b2-)
186 ;; 186 ;;
231 gzip*) 231 gzip*)
232 eval ${exe} | tar --no-same-owner -xzf - 232 eval ${exe} | tar --no-same-owner -xzf -
233 ;; 233 ;;
234 compress*) 234 compress*)
235 eval ${exe} | gunzip | tar --no-same-owner -xf - 235 eval ${exe} | gunzip | tar --no-same-owner -xf -
236 ;;
237 XZ*)
238 eval ${exe} | unxz | tar --no-same-owner -xf -
236 ;; 239 ;;
237 *) 240 *)
238 eerror "Unknown filetype \"${filetype}\" ?" 241 eerror "Unknown filetype \"${filetype}\" ?"
239 false 242 false
240 ;; 243 ;;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20