diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-20 07:36:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-20 07:36:08 +0000 |
commit | d9dce70429efed76fbe852c1d862648cdf50a8dc (patch) | |
tree | b136b3f585cb305c91899b568f9cd0b2ff4a4944 /sys-devel/gcc-config | |
parent | sh stabilize and sync some fixes with psm (diff) | |
download | gentoo-2-d9dce70429efed76fbe852c1d862648cdf50a8dc.tar.gz gentoo-2-d9dce70429efed76fbe852c1d862648cdf50a8dc.tar.bz2 gentoo-2-d9dce70429efed76fbe852c1d862648cdf50a8dc.zip |
add some more sanity checks so spb will shut up
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-devel/gcc-config')
-rwxr-xr-x | sys-devel/gcc-config/files/gcc-config-1.3.12 | 10 |
1 files changed, 8 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 0d3519b2c4f9..9366d86756e4 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.3 2005/08/05 15:21:19 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.4 2005/08/20 07:36:08 vapier Exp $ trap ":" INT QUIT TSTP @@ -93,7 +93,10 @@ get_real_chost() { if [[ -z ${REAL_CHOST} ]] ; then eerror "$0: Could not get portage CHOST!" - return 1 + eerror "$0: You should verify that CHOST is set in one of these places:" + eerror "$0: - ${ROOT}/etc/make.conf" + eerror "$0: - active environment" + exit 1 fi } @@ -463,6 +466,9 @@ for x in "$@" ; do -O|--use-old) if get_current_profile &>/dev/null ; then CC_COMP="$(get_current_profile)" + else + eerror "No profile selected, unable to utilize --use-old" + exit 1 fi ;; -f|--force) |