summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin F. Quinn <kevquinn@gentoo.org>2006-12-16 12:33:14 +0000
committerKevin F. Quinn <kevquinn@gentoo.org>2006-12-16 12:33:14 +0000
commit2e5cd6575f6aa2f1e19e1d142424e019d31cfe24 (patch)
tree1d3f286eaa35d22f1419417035e11a1361786a89
parentUpdated upgrade instructions (diff)
downloadkevquinn-2e5cd6575f6aa2f1e19e1d142424e019d31cfe24.tar.gz
kevquinn-2e5cd6575f6aa2f1e19e1d142424e019d31cfe24.tar.bz2
kevquinn-2e5cd6575f6aa2f1e19e1d142424e019d31cfe24.zip
Update for current CVS toolchain-funcs.eclass
svn path=/; revision=111
-rw-r--r--hardened/toolchain/eclass/toolchain-funcs.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/hardened/toolchain/eclass/toolchain-funcs.eclass b/hardened/toolchain/eclass/toolchain-funcs.eclass
index 4375fb5..676d97d 100644
--- a/hardened/toolchain/eclass/toolchain-funcs.eclass
+++ b/hardened/toolchain/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.62 2006/09/24 12:23:22 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.63 2006/12/16 10:31:12 vapier Exp $
#
# Author: Toolchain Ninjas <toolchain@gentoo.org>
#
@@ -180,23 +180,23 @@ tc-endian() {
# Returns the version as by `$CC -dumpversion`
gcc-fullversion() {
- echo "$($(tc-getCC) -dumpversion)"
+ $(tc-getCC "$@") -dumpversion
}
# Returns the version, but only the <major>.<minor>
gcc-version() {
- echo "$(gcc-fullversion | cut -f1,2 -d.)"
+ gcc-fullversion "$@" | cut -f1,2 -d.
}
# Returns the Major version
gcc-major-version() {
- echo "$(gcc-version | cut -f1 -d.)"
+ gcc-version "$@" | cut -f1 -d.
}
# Returns the Minor version
gcc-minor-version() {
- echo "$(gcc-version | cut -f2 -d.)"
+ gcc-version "$@" | cut -f2 -d.
}
# Returns the Micro version
gcc-micro-version() {
- echo "$(gcc-fullversion | cut -f3 -d. | cut -f1 -d-)"
+ gcc-fullversion "$@" | cut -f3 -d. | cut -f1 -d-
}
# Returns the installation directory
gcc-install-dir() {