/[gentoo-x86]/eclass/toolchain-funcs.eclass
Gentoo

Diff of /eclass/toolchain-funcs.eclass

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

Revision 1.4 Revision 1.5
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/toolchain-funcs.eclass,v 1.4 2004/10/15 20:10:45 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.5 2004/10/19 13:23:46 vapier Exp $
4# 4#
5# Author: Toolchain Ninjas <ninjas@gentoo.org> 5# Author: Toolchain Ninjas <ninjas@gentoo.org>
6# 6#
7# This eclass contains (or should) functions to get common info 7# This eclass contains (or should) functions to get common info
8# about the toolchain (libc/compiler/binutils/etc...) 8# about the toolchain (libc/compiler/binutils/etc...)
31 if [ -n "${CTARGET}" ] ; then 31 if [ -n "${CTARGET}" ] ; then
32 search="$(type -p "${CTARGET}-${prog}")" 32 search="$(type -p "${CTARGET}-${prog}")"
33 fi 33 fi
34 fi 34 fi
35 35
36 if [ -z "${search}" ] ; then 36 if [ -n "${search}" ] ; then
37 prog="${search##*/}" 37 prog="${search##*/}"
38 fi 38 fi
39 export ${var}="${prog}" 39 export ${var}="${prog}"
40 echo "${!var}" 40 echo "${!var}"
41} 41}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20