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

Diff of /eclass/eutils.eclass

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

Revision 1.65 Revision 1.66
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.65 2003/11/10 22:18:04 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.66 2003/11/15 21:48:37 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.
972 local pipestatus="${PIPESTATUS[*]}" 972 local pipestatus="${PIPESTATUS[*]}"
973 pipestatus="${pipestatus// }" 973 pipestatus="${pipestatus// }"
974 if [ "${pipestatus//0}" != "" ] 974 if [ "${pipestatus//0}" != "" ]
975 then 975 then
976 # maybe it isnt gzipped ... they usually are, but not always ... 976 # maybe it isnt gzipped ... they usually are, but not always ...
977 tail -n +${skip} ${src} | tar -x --no-same-owner -f - \ 977 tail -n +${skip} ${src} 2>/dev/null \
978 | tar -x --no-same-owner -f - 2>/dev/null
979 pipestatus="${pipestatus// }"
980 if [ "${pipestatus//0}" != "" ]
981 then
982 # and every once in a while they are bzipped2 ...
983 tail -n +${skip} ${src} 2>/dev/null \
984 | bunzip2 -c 2>/dev/null \
985 | tar -x --no-same-owner -f - 2>/dev/null \
978 || die "failure unpacking makeself ${shrtsrc} ('${ver}' +${skip})" 986 || die "failure unpacking makeself ${shrtsrc} ('${ver}' +${skip})"
987 fi
979 fi 988 fi
980} 989}
981 990
982# Display a license for user to accept. 991# Display a license for user to accept.
983# 992#

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20