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.230 2006/03/17 23:23:30 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.231 2006/03/18 18:38:11 swegener 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 | # hand its a directory, it will set EPATCH_SOURCE to this. |
137 | # hand its a directory, it will set EPATCH_SOURCE to this. |
138 | # |
138 | # |
139 | # <azarah@gentoo.org> (10 Nov 2002) |
139 | # <azarah@gentoo.org> (10 Nov 2002) |
140 | # |
140 | # |
141 | epatch() { |
141 | epatch() { |
142 | _epatch_draw_line() { |
142 | _epatch_draw_line() { |
143 | [[ -z $1 ]] && set "$(printf "%65s" '')" |
143 | [[ -z $1 ]] && set "$(printf "%65s" '')" |
144 | echo "${1//?/=}" |
144 | echo "${1//?/=}" |
145 | } |
145 | } |
146 | _epatch_assert() { local _pipestatus=${PIPESTATUS[*]}; [[ ${_pipestatus// /} -eq 0 ]] ; } |
146 | _epatch_assert() { local _pipestatus=${PIPESTATUS[*]}; [[ ${_pipestatus// /} -eq 0 ]] ; } |
147 | local PIPE_CMD="" |
147 | local PIPE_CMD="" |