summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-06 06:18:59 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-06 06:18:59 +0000
commit3e75932a42e99a737a0ead4084fcf402596b8f55 (patch)
tree94d03f2cad0236c7d18afd52478685592e40ca3a /eclass
parentuse tc-export (diff)
downloadgentoo-2-3e75932a42e99a737a0ead4084fcf402596b8f55.tar.gz
gentoo-2-3e75932a42e99a737a0ead4084fcf402596b8f55.tar.bz2
gentoo-2-3e75932a42e99a737a0ead4084fcf402596b8f55.zip
tc-export()
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index c1895b5e459a..d33436f173ba 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.9 2004/11/17 22:13:07 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.10 2004/12/06 06:18:59 vapier Exp $
#
# Author: Toolchain Ninjas <ninjas@gentoo.org>
#
@@ -77,6 +77,14 @@ tc-getBUILD_CC() {
fi
}
+# Quick way to export a bunch of vars at once
+tc-export() {
+ local var
+ for var in "$@" ; do
+ eval tc-get${var}
+ done
+}
+
# Returns the version as by `$CC -dumpversion`
gcc-fullversion() {