-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+MD5 9f09057218a96b38cfeb526dfdf2eeae gcc-config-1.3.9.ebuild 1356
MD5 5d9bf515454f54cc1fa8c6f39ff6dc25 ChangeLog 14989
MD5 4b9c47ec37e9e99b4811baaca5c1ce8f gcc-config-1.3.8-r4.ebuild 1347
-MD5 8d1e179549c1c01e991cd0eebd80f0d8 gcc-config-1.3.9.ebuild 1371
MD5 567094e03359ffc1c95af7356395228d metadata.xml 162
-MD5 7723c767ef3e4935c2299fb253412d7e files/wrapper-1.4.4.c 10132
+MD5 bd9ae2143c2f5ba864ec1261284d0689 files/gcc-config-1.3.8 12455
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.8-r4 0
-MD5 9b21f65b6185fb72a0d9f7b045419292 files/gcc-config-1.3.9 12404
+MD5 fa87d6829c82df95a04f6cd1e6e15ade files/gcc-config-1.3.9 12598
+MD5 7723c767ef3e4935c2299fb253412d7e files/wrapper-1.4.4.c 10132
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.9 0
-MD5 bd9ae2143c2f5ba864ec1261284d0689 files/gcc-config-1.3.8 12455
MD5 e7c7a83406a374ee4262c97d6e5673b2 files/wrapper-1.4.3.c 7545
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
+Version: GnuPG v1.9.14 (GNU/Linux)
-iD8DBQFB26YEArHZZzCEUG0RApOaAJ9hB4fUnlQ9MPvJNGq65DTo2IipuwCfQfP/
-LY1/F7YONniyskajsbadkHg=
-=y1SZ
+iD8DBQFB3u3ProRuSHgZdywRAhQuAJ9Ds1R2qnrUwhAKh74zELR/bguD6wCfe3X5
+QOT39jv3AYhLkgeLQ0SGG8E=
+=01LC
-----END PGP SIGNATURE-----
#!/bin/bash
# Copyright 1999-2004 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.9,v 1.2 2005/01/05 08:31:53 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.9,v 1.3 2005/01/07 20:14:57 vapier Exp $
# Author: Martin Schlemmer <azarah@gentoo.org>
trap ":" INT QUIT TSTP
get_current_profile() {
local conf="${GCC_ENV_D}/config"
- [[ -n ${CTARGET} ]] && conf="${GCC_ENV_D}/config-${CTARGET}"
+ if [[ -n ${CTARGET} ]] ; then
+ conf="${conf}-${CTARGET}"
+ elif [[ -f ${GCC_ENV_D}/config-${CC_COMP} ]] ; then
+ conf="${conf}-${CC_COMP}"
+ fi
if [[ ! -f ${conf} ]] ; then
eerror "$0: No gcc profile is active!"
else
# User gave us a full HOST-gccver
x=${x##*/}
- if [[ ! -f ${GCC_ENV_D}/${x} ]] ; then
+ if [[ ${DOIT} != "get_current_profile" ]] && \
+ [[ ! -f ${GCC_ENV_D}/${x} ]]
+ then
eerror "$0: Could not locate '$x' in '${GCC_ENV_D}/'!"
exit 1
fi
fi
fi
-CC_COMP_NO_SPECS=$(echo ${CC_COMP} | awk -F- '{ print $1"-"$2"-"$3"-"$4"-"$5 }')
+if [[ ${DOIT} != "get_current_profile" ]] ; then
+ CC_COMP_NO_SPECS=$(echo ${CC_COMP} | awk -F- '{ print $1"-"$2"-"$3"-"$4"-"$5 }')
-GCC_LIB=$(source "${GCC_ENV_D}/${CC_COMP}"
- cmd_setup
- echo ${LDPATH} | ${AWK} -F/ '{ print "/"$2"/"$3"/"$4"/" }')
+ GCC_LIB=$(source "${GCC_ENV_D}/${CC_COMP}"
+ cmd_setup
+ echo ${LDPATH} | ${AWK} -F/ '{ print "/"$2"/"$3"/"$4"/" }')
-if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_NO_SPECS%-*}/${CC_COMP_NO_SPECS##*-} ]] || \
- [[ ! -f ${GCC_ENV_D}/${CC_COMP} ]]
-then
- eerror "$0: Profile does not exist or invalid setting for ${GCC_ENV_D}/${CC_COMP}" 1>&2
- #exit 1
+ if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_NO_SPECS%-*}/${CC_COMP_NO_SPECS##*-} ]] || \
+ [[ ! -f ${GCC_ENV_D}/${CC_COMP} ]]
+ then
+ eerror "$0: Profile does not exist or invalid setting for ${GCC_ENV_D}/${CC_COMP}" 1>&2
+ #exit 1
+ fi
fi
if [[ ${CHECK_CHOST} = "yes" ]] ; then
# 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/gcc-config-1.3.9.ebuild,v 1.2 2005/01/03 00:02:43 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.9.ebuild,v 1.3 2005/01/07 20:14:57 vapier Exp $
inherit toolchain-funcs
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-KEYWORDS="-*"
IUSE=""
DEPEND="virtual/libc