summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/gcc-config')
-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