diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-01 01:31:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-01 01:31:00 +0000 |
commit | 258feb4f70ad5a864573f193b3959bf7e86ac933 (patch) | |
tree | 2d0e8a8204e5665ea4a8b3fe9b5ef037a8826b17 /sys-devel/gcc-config/files/gcc-config-1.3.12 | |
parent | Marked ~amd64, bug 111069. (diff) | |
download | historical-258feb4f70ad5a864573f193b3959bf7e86ac933.tar.gz historical-258feb4f70ad5a864573f193b3959bf7e86ac933.tar.bz2 historical-258feb4f70ad5a864573f193b3959bf7e86ac933.zip |
Make sure we set env vars before trying to use them #111022 by Attila Stehr.
Package-Manager: portage-2.0.53_rc6
Diffstat (limited to 'sys-devel/gcc-config/files/gcc-config-1.3.12')
-rwxr-xr-x | sys-devel/gcc-config/files/gcc-config-1.3.12 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-devel/gcc-config/files/gcc-config-1.3.12 b/sys-devel/gcc-config/files/gcc-config-1.3.12 index f11433a7cdc8..00567f7e8893 100755 --- a/sys-devel/gcc-config/files/gcc-config-1.3.12 +++ b/sys-devel/gcc-config/files/gcc-config-1.3.12 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.7 2005/09/18 04:51:24 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.8 2005/11/01 01:31:00 vapier Exp $ trap ":" INT QUIT TSTP @@ -607,6 +607,8 @@ if [[ ${DOIT} == "switch_profile" ]] && [[ -z ${CC_COMP} ]] ; then usage 1 fi +cmd_setup + if [[ -z ${CC_COMP} ]] ; then if get_current_profile &>/dev/null ; then CC_COMP="$(get_current_profile)" @@ -619,7 +621,6 @@ fi if [[ ${DOIT} != "get_current_profile" ]] ; then GCC_LIB=$( source "${GCC_ENV_D}/${CC_COMP}" - cmd_setup echo ${LDPATH} | ${AWK} -F/ '{ print "/"$2"/"$3"/"$4"/" }' ) |