summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-07-05 23:36:31 +0000
committerMike Frysinger <vapier@gentoo.org>2006-07-05 23:36:31 +0000
commitf40f96f1054ca12e1298cbf1ede0782ca3c2a88e (patch)
tree7f8bb676f0924e1cc5fd4a14e284cf41d6f8f7c2 /sys-devel/gcc-config/files
parentFix build when configure is regenerated using autoconf-2.60 by (diff)
downloadgentoo-2-f40f96f1054ca12e1298cbf1ede0782ca3c2a88e.tar.gz
gentoo-2-f40f96f1054ca12e1298cbf1ede0782ca3c2a88e.tar.bz2
gentoo-2-f40f96f1054ca12e1298cbf1ede0782ca3c2a88e.zip
setup command envvars very early so we dont have to do stupid checks in sub code
(Portage version: 2.1.1_pre2-r2)
Diffstat (limited to 'sys-devel/gcc-config/files')
-rwxr-xr-xsys-devel/gcc-config/files/gcc-config-1.3.1310
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-devel/gcc-config/files/gcc-config-1.3.13 b/sys-devel/gcc-config/files/gcc-config-1.3.13
index eac9d35becbe..b123958ad9c1 100755
--- a/sys-devel/gcc-config/files/gcc-config-1.3.13
+++ b/sys-devel/gcc-config/files/gcc-config-1.3.13
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2006 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.13,v 1.10 2006/07/04 19:10:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.13,v 1.11 2006/07/05 23:36:31 vapier Exp $
trap ":" INT QUIT TSTP
@@ -94,7 +94,7 @@ try_real_hard_to_find_CHOST() {
# newer portage supports spaces between the var and =
# CHOST = "this-is-retarded"
ret=$(eval $(
- ${SED:-sed} -n \
+ ${SED} -n \
-e 's:[[:space:]]::g' \
-e '/^CHOST=/p' \
"${conf}"
@@ -494,7 +494,7 @@ split_gcc_ver() {
# target [1]
# accept everything we have left
#
- echo "$@" | ${AWK:-awk} -F- '
+ echo "$@" | ${AWK} -F- '
function pushit(onme, pushee) {
return (onme == "" ? pushee : pushee"-"onme);
}
@@ -534,6 +534,8 @@ chop_gcc_ver_spec() {
echo ${splitTED/ /-} # ver-spec
}
+cmd_setup
+
NEED_ACTION="yes"
DOIT="switch_profile"
CHECK_CHOST="no"
@@ -663,8 +665,6 @@ if [[ ${DOIT} == "switch_profile" ]] && [[ -z ${CC_COMP} ]] ; then
usage 1
fi
-cmd_setup
-
if [[ -z ${CC_COMP} ]] ; then
CC_COMP=$(get_current_profile)
if [[ $? -ne 0 ]] ; then