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

Diff of /eclass/unpacker.eclass

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

Revision 1.8 Revision 1.9
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.8 2012/04/29 00:15:10 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.9 2012/05/11 07:46:44 vapier 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
311 arch="tar --no-same-owner -xof" ;; 311 arch="tar --no-same-owner -xof" ;;
312 *.deb) 312 *.deb)
313 arch="unpack_deb" ;; 313 arch="unpack_deb" ;;
314 *.run) 314 *.run)
315 arch="unpack_makeself" ;; 315 arch="unpack_makeself" ;;
316 *.sh)
317 # Not all shell scripts are makeself
318 if head -n 30 "${a}" | grep -qs '#.*Makeself' ; then
319 arch="unpack_makeself"
320 fi
321 ;;
316 *.bin) 322 *.bin)
317 # Makeself archives can be annoyingly named 323 # Makeself archives can be annoyingly named
318 if head -c 100 "${a}" | grep -qs '#.*Makeself' ; then 324 if head -c 100 "${a}" | grep -qs '#.*Makeself' ; then
319 arch="unpack_makeself" 325 arch="unpack_makeself"
320 fi 326 fi

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20