diff options
author | 2017-12-16 00:36:34 +0100 | |
---|---|---|
committer | 2017-12-16 00:36:34 +0100 | |
commit | da155c6ce040f936bad041a36db51d05f0209c89 (patch) | |
tree | bbccf8ce3e42e8a308afed7b90c63af32243c2fb | |
parent | Version 1.3 (diff) | |
download | binutils-config-da155c6ce040f936bad041a36db51d05f0209c89.tar.gz binutils-config-da155c6ce040f936bad041a36db51d05f0209c89.tar.bz2 binutils-config-da155c6ce040f936bad041a36db51d05f0209c89.zip |
Version 1.4
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.4?revision=1.1
-rw-r--r-- | binutils-config | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/binutils-config b/binutils-config index bd80b06..14ee703 100644 --- a/binutils-config +++ b/binutils-config @@ -1,7 +1,7 @@ #!/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/binutils-config/files/Attic/binutils-config-1.3,v 1.1 2004/12/16 02:30:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/Attic/binutils-config-1.4,v 1.1 2004/12/26 08:30:13 vapier Exp $ # Format of /etc/env.d/binutils/: # config-TARGET: CURRENT=version for TARGET @@ -98,10 +98,32 @@ switch_profile() { ln -sf "${INCPATH}/${x}" "${dstinc}/${x}" done + # + # Make sure proper paths get updated + # + if [[ ${TARGET} = ${HOST} ]] ; then + DATAPATH="/usr/share/binutils-data/${TARGET}/${VER}" + echo "MANPATH=${DATAPATH}/man" > "${ROOT}"/etc/env.d/05binutils + echo "INFOPATH=${DATAPATH}/info" >> "${ROOT}"/etc/env.d/05binutils + echo "LDPATH=/usr/${TARGET}/lib" >> "${ROOT}"/etc/env.d/05binutils + fi + eend 0 echo "CURRENT=${VER}" > "${ENV_D}/config-${TARGET}" + # + # Regen env.d if need/can be + # + if [[ ${ROOT} = "/" ]] && [[ ${TARGET} = ${HOST} ]] ; then + env-update + echo + ewarn "Please remember to run:" + echo + ewarn " # source /etc/profile" + echo + fi + return 0 } |