diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-02 06:24:25 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-02 06:24:25 +0000 |
commit | 679def1bf32c6b221db720db6d6c2d251afdce9f (patch) | |
tree | 312b965b34b12320844e03a9bb1e248d9b635b4e /sys-devel | |
parent | if user has noinfo or noman in FEATURES, delete the corresponding files (diff) | |
download | gentoo-2-679def1bf32c6b221db720db6d6c2d251afdce9f.tar.gz gentoo-2-679def1bf32c6b221db720db6d6c2d251afdce9f.tar.bz2 gentoo-2-679def1bf32c6b221db720db6d6c2d251afdce9f.zip |
only extend INFO/MAN PATHs if the dirs exist
Diffstat (limited to 'sys-devel')
-rwxr-xr-x | sys-devel/binutils-config/files/binutils-config-1.6 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.6 b/sys-devel/binutils-config/files/binutils-config-1.6 index d11df19ac4f0..0c30c69fc5a9 100755 --- a/sys-devel/binutils-config/files/binutils-config-1.6 +++ b/sys-devel/binutils-config/files/binutils-config-1.6 @@ -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/binutils-config-1.6,v 1.2 2005/01/02 06:06:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.6,v 1.3 2005/01/02 06:24:25 vapier Exp $ # Format of /etc/env.d/binutils/: # config-TARGET: CURRENT=version for TARGET @@ -126,7 +126,9 @@ switch_profile() { # if [[ ${TARGET} = "${HOST}" ]] ; then DATAPATH="/usr/share/binutils-data/${TARGET}/${VER}" + [[ -d ${DATAPATH}/man ]] && \ echo "MANPATH=${DATAPATH}/man" > "${ROOT}"/etc/env.d/05binutils + [[ -d ${DATAPATH}/info ]] && \ echo "INFOPATH=${DATAPATH}/info" >> "${ROOT}"/etc/env.d/05binutils echo "LDPATH=/usr/${TARGET}/lib" >> "${ROOT}"/etc/env.d/05binutils fi |