| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.368 2011/10/27 07:16:08 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.369 2011/12/02 03:27:37 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: eutils.eclass |
5 | # @ECLASS: eutils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # base-system@gentoo.org |
7 | # base-system@gentoo.org |
| 8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
| … | |
… | |
| 335 | local STDERR_TARGET="${T}/${patchname}.out" |
335 | local STDERR_TARGET="${T}/${patchname}.out" |
| 336 | if [[ -e ${STDERR_TARGET} ]] ; then |
336 | if [[ -e ${STDERR_TARGET} ]] ; then |
| 337 | STDERR_TARGET="${T}/${patchname}-$$.out" |
337 | STDERR_TARGET="${T}/${patchname}-$$.out" |
| 338 | fi |
338 | fi |
| 339 | |
339 | |
| 340 | printf "***** %s *****\n\n" "${patchname}" > "${STDERR_TARGET}" |
340 | printf "***** %s *****\nPWD: %s\n\n" "${patchname}" "${PWD}" > "${STDERR_TARGET}" |
| 341 | |
341 | |
| 342 | # Decompress the patch if need be |
342 | # Decompress the patch if need be |
| 343 | local count=0 |
343 | local count=0 |
| 344 | local PATCH_TARGET |
344 | local PATCH_TARGET |
| 345 | if [[ -n ${PIPE_CMD} ]] ; then |
345 | if [[ -n ${PIPE_CMD} ]] ; then |