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

Diff of /eclass/eutils.eclass

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

Revision 1.71 Revision 1.73
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.71 2003/11/30 11:42:09 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.73 2003/12/01 20:13:00 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.
996 fi 996 fi
997 else 997 else
998 if [ ${istar} -eq 1 ] ; then 998 if [ ${istar} -eq 1 ] ; then
999 tail -c +$((${tailskip}+1)) ${src} 2>/dev/null \ 999 tail -c +$((${tailskip}+1)) ${src} 2>/dev/null \
1000 | head -c $((${metaskip}-${tailskip})) \ 1000 | head -c $((${metaskip}-${tailskip})) \
1001 | tar -xf - 1001 | tar --no-same-owner -xf -
1002 else 1002 else
1003 tail -c +$((${tailskip}+1)) ${src} 2>/dev/null \ 1003 tail -c +$((${tailskip}+1)) ${src} 2>/dev/null \
1004 | head -c $((${metaskip}-${tailskip})) \ 1004 | head -c $((${metaskip}-${tailskip})) \
1005 > ${datafile} 1005 > ${datafile}
1006 fi 1006 fi
1063 local tmpfile="`mymktemp ${T}`" 1063 local tmpfile="`mymktemp ${T}`"
1064 tail -n +${skip} ${src} 2>/dev/null | head -c 512 > ${tmpfile} 1064 tail -n +${skip} ${src} 2>/dev/null | head -c 512 > ${tmpfile}
1065 local filetype="`file -b ${tmpfile}`" 1065 local filetype="`file -b ${tmpfile}`"
1066 case ${filetype} in 1066 case ${filetype} in
1067 *tar\ archive) 1067 *tar\ archive)
1068 tail -n +${skip} ${src} | tar -xf - 1068 tail -n +${skip} ${src} | tar --no-same-owner -xf -
1069 ;; 1069 ;;
1070 bzip2*) 1070 bzip2*)
1071 tail -n +${skip} ${src} | bzip2 -dc | tar -xf - 1071 tail -n +${skip} ${src} | bzip2 -dc | tar --no-same-owner -xf -
1072 ;; 1072 ;;
1073 gzip*) 1073 gzip*)
1074 tail -n +${skip} ${src} | tar -xzf - 1074 tail -n +${skip} ${src} | tar --no-same-owner -xzf -
1075 ;; 1075 ;;
1076 *) 1076 *)
1077 false 1077 false
1078 ;; 1078 ;;
1079 esac 1079 esac

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.73

  ViewVC Help
Powered by ViewVC 1.1.20