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

Diff of /eclass/autotools.eclass

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

Revision 1.103 Revision 1.104
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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/autotools.eclass,v 1.103 2011/05/16 03:44:26 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.104 2011/08/07 22:53:28 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
285 285
286 local STDERR_TARGET="${T}/$1.out" 286 local STDERR_TARGET="${T}/$1.out"
287 # most of the time, there will only be one run, but if there are 287 # most of the time, there will only be one run, but if there are
288 # more, make sure we get unique log filenames 288 # more, make sure we get unique log filenames
289 if [[ -e ${STDERR_TARGET} ]] ; then 289 if [[ -e ${STDERR_TARGET} ]] ; then
290 local i=1
291 while :; do
290 STDERR_TARGET="${T}/$1-$$.out" 292 STDERR_TARGET="${T}/$1-${i}.out"
293 [[ -e ${STDERR_TARGET} ]] || break
294 : $(( i++ ))
295 done
291 fi 296 fi
292 297
293 printf "***** $1 *****\n***** PWD: ${PWD}\n***** $*\n\n" > "${STDERR_TARGET}" 298 printf "***** $1 *****\n***** PWD: ${PWD}\n***** $*\n\n" > "${STDERR_TARGET}"
294 299
295 ebegin "Running $@" 300 ebegin "Running $@"

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104

  ViewVC Help
Powered by ViewVC 1.1.20