diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-11 07:46:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-11 07:46:44 +0000 |
commit | c638dc85b9c5d0a2777dbbeac21979ffbb321801 (patch) | |
tree | 2d26009a2275885432a12a09983ad6512b89eede /eclass | |
parent | sci-chemistry/pdb2pqr: Correct installation path of apbs (diff) | |
download | gentoo-2-c638dc85b9c5d0a2777dbbeac21979ffbb321801.tar.gz gentoo-2-c638dc85b9c5d0a2777dbbeac21979ffbb321801.tar.bz2 gentoo-2-c638dc85b9c5d0a2777dbbeac21979ffbb321801.zip |
probe .sh files to see if they are makeself archives #415013 by Alan Smithee
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/unpacker.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index 7869b2a1d8b1..0ec63b1f7492 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.8 2012/04/29 00:15:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.9 2012/05/11 07:46:44 vapier Exp $ # @ECLASS: unpacker.eclass # @MAINTAINER: @@ -313,6 +313,12 @@ _unpacker() { arch="unpack_deb" ;; *.run) arch="unpack_makeself" ;; + *.sh) + # Not all shell scripts are makeself + if head -n 30 "${a}" | grep -qs '#.*Makeself' ; then + arch="unpack_makeself" + fi + ;; *.bin) # Makeself archives can be annoyingly named if head -c 100 "${a}" | grep -qs '#.*Makeself' ; then |