| 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/toolchain-funcs.eclass,v 1.105 2011/09/06 22:54:45 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.106 2011/09/09 19:14:19 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: toolchain-funcs.eclass |
5 | # @ECLASS: toolchain-funcs.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Toolchain Ninjas <toolchain@gentoo.org> |
7 | # Toolchain Ninjas <toolchain@gentoo.org> |
| 8 | # @BLURB: functions to query common info about the toolchain |
8 | # @BLURB: functions to query common info about the toolchain |
| … | |
… | |
| 25 | local prog=$3 |
25 | local prog=$3 |
| 26 | |
26 | |
| 27 | var=${vars%% *} |
27 | var=${vars%% *} |
| 28 | for v in ${vars} ; do |
28 | for v in ${vars} ; do |
| 29 | if [[ -n ${!v} ]] ; then |
29 | if [[ -n ${!v} ]] ; then |
| 30 | export ${var}=${!v} |
30 | export ${var}="${!v}" |
| 31 | echo "${!v}" |
31 | echo "${!v}" |
| 32 | return 0 |
32 | return 0 |
| 33 | fi |
33 | fi |
| 34 | done |
34 | done |
| 35 | |
35 | |