diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-04 13:46:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-04 13:46:55 +0000 |
commit | 3fbdbad703a6a68da42348dc1de93ca47911353a (patch) | |
tree | 5b58c6d19e453bd54960ef170a3d514ac8448292 /eclass | |
parent | New ebuild thanks to John Shaw <jtshaw@jtshaw.com> and RockCrusha <stonebrake... (diff) | |
download | gentoo-2-3fbdbad703a6a68da42348dc1de93ca47911353a.tar.gz gentoo-2-3fbdbad703a6a68da42348dc1de93ca47911353a.tar.bz2 gentoo-2-3fbdbad703a6a68da42348dc1de93ca47911353a.zip |
undo style changes
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 9de9e5be7aa1..4c0df182dd81 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.32 2005/03/04 12:37:55 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.33 2005/03/04 13:46:55 vapier Exp $ # # Author: Toolchain Ninjas <ninjas@gentoo.org> # @@ -13,16 +13,16 @@ INHERITED="$INHERITED $ECLASS" DESCRIPTION="Based on the ${ECLASS} eclass" tc-getPROG() { - local var=${1} - local prog=${2} + local var=$1 + local prog=$2 if [[ -n ${!var} ]] ; then echo "${!var}" return 0 fi - if [[ -n ${3} ]] ; then - local search=$(type -p "${3}-${prog}") + if [[ -n $3 ]] ; then + local search=$(type -p "$3-${prog}") [[ -n ${search} ]] && prog=${search##*/} elif [[ -n ${CHOST} ]] ; then local search=$(type -p "${CHOST}-${prog}") @@ -34,23 +34,23 @@ tc-getPROG() { } # Returns the name of the archiver -tc-getAR() { tc-getPROG AR ar "${@}"; } +tc-getAR() { tc-getPROG AR ar "$@"; } # Returns the name of the assembler -tc-getAS() { tc-getPROG AS as "${@}"; } +tc-getAS() { tc-getPROG AS as "$@"; } # Returns the name of the C compiler -tc-getCC() { tc-getPROG CC gcc "${@}"; } +tc-getCC() { tc-getPROG CC gcc "$@"; } # Returns the name of the C++ compiler -tc-getCXX() { tc-getPROG CXX g++ "${@}"; } +tc-getCXX() { tc-getPROG CXX g++ "$@"; } # Returns the name of the linker -tc-getLD() { tc-getPROG LD ld "${@}"; } +tc-getLD() { tc-getPROG LD ld "$@"; } # Returns the name of the symbol/object thingy -tc-getNM() { tc-getPROG NM nm "${@}"; } +tc-getNM() { tc-getPROG NM nm "$@"; } # Returns the name of the archiver indexer -tc-getRANLIB() { tc-getPROG RANLIB ranlib "${@}"; } +tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; } # Returns the name of the fortran compiler -tc-getF77() { tc-getPROG F77 f77 "${@}"; } +tc-getF77() { tc-getPROG F77 f77 "$@"; } # Returns the name of the java compiler -tc-getGCJ() { tc-getPROG GCJ gcj "${@}"; } +tc-getGCJ() { tc-getPROG GCJ gcj "$@"; } # Returns the name of the C compiler for build tc-getBUILD_CC() { |