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

Diff of /eclass/autotools.eclass

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

Revision 1.68 Revision 1.69
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.68 2007/09/18 13:25:38 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.69 2008/01/07 02:54:49 vapier Exp $
4# 4#
5# Maintainer: base-system@gentoo.org 5# Maintainer: base-system@gentoo.org
6# 6#
7# This eclass is for handling autotooled software packages that 7# This eclass is for handling autotooled software packages that
8# needs to regenerate their build scripts. 8# needs to regenerate their build scripts.
198# Internal function to run an autotools' tool 198# Internal function to run an autotools' tool
199autotools_run_tool() { 199autotools_run_tool() {
200 local STDERR_TARGET="${T}/$$.out" 200 local STDERR_TARGET="${T}/$$.out"
201 local ris 201 local ris
202 202
203 echo "***** $1 *****" > ${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/} 203 printf "***** $1 *****\n\n" > "${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/}"
204 echo >> ${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/}
205 204
206 ebegin "Running $@" 205 ebegin "Running $@"
207 $@ >> ${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/} 2>&1 206 "$@" >> "${STDERR_TARGET%/*}/$1-${STDERR_TARGET##*/}" 2>&1
208 ris=$? 207 ris=$?
209 eend ${ris} 208 eend ${ris}
210 209
211 if [[ ${ris} != 0 && ${NO_FAIL} != 1 ]]; then 210 if [[ ${ris} != 0 && ${NO_FAIL} != 1 ]]; then
212 echo 211 echo

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20