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

Diff of /eclass/eutils.eclass

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

Revision 1.92 Revision 1.94
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/eutils.eclass,v 1.92 2004/08/03 17:24:52 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.94 2004/08/13 15:39:40 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.
144 local SINGLE_PATCH="no" 144 local SINGLE_PATCH="no"
145 local x="" 145 local x=""
146 146
147 if [ "$#" -gt 1 ] 147 if [ "$#" -gt 1 ]
148 then 148 then
149 eerror "Invalid arguments to epatch()" 149 local m=""
150 die "Invalid arguments to epatch()" 150 einfo "${#} patches to apply..."
151 for m in "$@" ; do
152 epatch "${m}"
153 done
154 return 0
151 fi 155 fi
152 156
153 if [ -n "$1" -a -f "$1" ] 157 if [ -n "$1" -a -f "$1" ]
154 then 158 then
155 SINGLE_PATCH="yes" 159 SINGLE_PATCH="yes"
1016 tail -n +${skip} ${src} | bzip2 -dc | tar --no-same-owner -xf - 1020 tail -n +${skip} ${src} | bzip2 -dc | tar --no-same-owner -xf -
1017 ;; 1021 ;;
1018 gzip*) 1022 gzip*)
1019 tail -n +${skip} ${src} | tar --no-same-owner -xzf - 1023 tail -n +${skip} ${src} | tar --no-same-owner -xzf -
1020 ;; 1024 ;;
1025 compress*)
1026 tail -n +${skip} ${src} | gunzip | tar --no-same-owner -xf -
1027 ;;
1021 *) 1028 *)
1029 eerror "Unknown filetype \"${filetype}\" ?"
1022 false 1030 false
1023 ;; 1031 ;;
1024 esac 1032 esac
1025 assert "failure unpacking (${filetype}) makeself ${shrtsrc} ('${ver}' +${skip})" 1033 assert "failure unpacking (${filetype}) makeself ${shrtsrc} ('${ver}' +${skip})"
1026} 1034}

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.94

  ViewVC Help
Powered by ViewVC 1.1.20