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

Diff of /eclass/eutils.eclass

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

Revision 1.227 Revision 1.228
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.227 2006/03/10 18:05:39 carlo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.228 2006/03/10 23:24:21 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.
137# 137#
138# <azarah@gentoo.org> (10 Nov 2002) 138# <azarah@gentoo.org> (10 Nov 2002)
139# 139#
140epatch() { 140epatch() {
141 _epatch_draw_line() { 141 _epatch_draw_line() {
142 # this func produces a lot of pointless noise when debugging is turned on ...
143 local is_debug=0
144 [[ $- == *x* ]] && is_debug=1 && set +x
145
142 local i=0 str_length="" str_out="" 146 local i=0 str_length="" str_out=""
143 147
144 # Handle calls that do not have args, or wc not being installed ... 148 # Handle calls that do not have args, or wc not being installed ...
145 if [[ -z $1 ]] || ! type -p wc >/dev/null ; then 149 if [[ -z $1 ]] || ! type -p wc >/dev/null ; then
146 str_length=65 150 str_length=65
151 while ((i++ < ${str_length})) ; do 155 while ((i++ < ${str_length})) ; do
152 str_out="${str_out}=" 156 str_out="${str_out}="
153 done 157 done
154 echo ${str_out} 158 echo ${str_out}
155 159
160 [[ ${is_debug} -eq 1 ]] && set -x
156 return 0 161 return 0
157 } 162 }
158 _epatch_assert() { local _pipestatus=${PIPESTATUS[*]}; [[ ${_pipestatus// /} -eq 0 ]] ; } 163 _epatch_assert() { local _pipestatus=${PIPESTATUS[*]}; [[ ${_pipestatus// /} -eq 0 ]] ; }
159 local PIPE_CMD="" 164 local PIPE_CMD=""
160 local STDERR_TARGET="${T}/$$.out" 165 local STDERR_TARGET="${T}/$$.out"

Legend:
Removed from v.1.227  
changed lines
  Added in v.1.228

  ViewVC Help
Powered by ViewVC 1.1.20