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

Diff of /eclass/eutils.eclass

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

Revision 1.61 Revision 1.62
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/eutils.eclass,v 1.61 2003/09/26 17:01:45 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.62 2003/10/05 02:42:24 vapier Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
961 debug-print "Detected Makeself version ${ver} ... using ${skip} as offset" 961 debug-print "Detected Makeself version ${ver} ... using ${skip} as offset"
962 fi 962 fi
963 963
964 # we do this because otherwise a failure in gzip will cause 0 bytes to be sent 964 # we do this because otherwise a failure in gzip will cause 0 bytes to be sent
965 # to tar which will make tar not extract anything and exit with 0 965 # to tar which will make tar not extract anything and exit with 0
966 tail -n +${skip} ${src} | gzip -cd | tar -x --no-same-owner -f - 2>/dev/null 966 tail -n +${skip} ${src} 2>/dev/null \
967 | gzip -cd 2>/dev/null \
968 | tar -x --no-same-owner -f - 2>/dev/null
967 local pipestatus="${PIPESTATUS[*]}" 969 local pipestatus="${PIPESTATUS[*]}"
968 pipestatus="${pipestatus// }" 970 pipestatus="${pipestatus// }"
969 if [ "${pipestatus//0}" != "" ] 971 if [ "${pipestatus//0}" != "" ]
970 then 972 then
971 # maybe it isnt gzipped ... they usually are, but not always ... 973 # maybe it isnt gzipped ... they usually are, but not always ...

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

  ViewVC Help
Powered by ViewVC 1.1.20