diff options
author | 2006-05-13 05:11:16 +0000 | |
---|---|---|
committer | 2006-05-13 05:11:16 +0000 | |
commit | 6f4aafcc0dc8d4f0a0a05e43c9c12287815975e0 (patch) | |
tree | 67b9176343c434ff73b4769b566b10af35a94f16 /sys-devel | |
parent | New development snapshot. (diff) | |
download | gentoo-2-6f4aafcc0dc8d4f0a0a05e43c9c12287815975e0.tar.gz gentoo-2-6f4aafcc0dc8d4f0a0a05e43c9c12287815975e0.tar.bz2 gentoo-2-6f4aafcc0dc8d4f0a0a05e43c9c12287815975e0.zip |
tweak * markings in -l output for cross-compilers to match gcc-config
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'sys-devel')
-rwxr-xr-x | sys-devel/binutils-config/files/binutils-config-1.8 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.8 b/sys-devel/binutils-config/files/binutils-config-1.8 index 6fc5c5d58e7c..08a2d7b5f04b 100755 --- a/sys-devel/binutils-config/files/binutils-config-1.8 +++ b/sys-devel/binutils-config/files/binutils-config-1.8 @@ -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/binutils-config/files/binutils-config-1.8,v 1.16 2006/04/28 04:00:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.17 2006/05/13 05:11:16 vapier Exp $ # Format of /etc/env.d/binutils/: # config-TARGET: CURRENT=version for TARGET @@ -230,6 +230,8 @@ get_current_profile() { list_profiles() { local i=1 + set_HOST + if [[ ${ROOT} != / ]] ; then echo "Using binutils-config info in ${ROOT}" fi @@ -245,7 +247,11 @@ list_profiles() { x=${x##*/} if [[ -e ${ENV_D}/config-${TARGET} ]] ; then source "${ENV_D}/config-${TARGET}" - [[ ${VER} == ${CURRENT} ]] && x="${x} ${GOOD}*${NORMAL}" + if [[ ${VER} == ${CURRENT} ]] ; then + [[ ${TARGET} == ${HOST} ]] \ + && x="${x} ${GOOD}*${NORMAL}" \ + || x="${x} ${HILITE}*${NORMAL}" + fi fi echo " [${i}] ${x}" ((++i)) @@ -306,7 +312,7 @@ while [[ $# -gt 0 ]] ; do exit 0 ;; -V|--version) - cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.16 2006/04/28 04:00:22 vapier Exp $" + cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.17 2006/05/13 05:11:16 vapier Exp $" cvsver=${cvsver##*binutils-config-} bver=${cvsver%%,v *} cvsver=${cvsver#* } |