summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-12-17 13:06:48 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-12-17 13:06:48 +0000
commitba2edb982408004f47a7d07897aac95083862cff (patch)
tree17dcd9a49fa8b5a430afd08dfca987221dd1e713
parentadd --list-profiles (diff)
downloadgcc-config-ba2edb982408004f47a7d07897aac95083862cff.tar.gz
gcc-config-ba2edb982408004f47a7d07897aac95083862cff.tar.bz2
gcc-config-ba2edb982408004f47a7d07897aac95083862cff.zip
small fixesv1.2.4
-rwxr-xr-xgcc-config12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc-config b/gcc-config
index 27bf1ce..68e03a4 100755
--- a/gcc-config
+++ b/gcc-config
@@ -2,7 +2,7 @@
# Copyright 1999-2002 Gentoo Foundation
# Distributed under the terms of the GNU General Public License
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.4,v 1.1 2002/12/16 18:45:53 azarah Exp $
+# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.2.4,v 1.2 2002/12/17 13:06:48 azarah Exp $
source /etc/init.d/functions.sh || {
@@ -132,9 +132,15 @@ switch_profile() {
if [ -z "${MY_LDPATH}" ]
then
- MY_LDPATH="${LDPATH}"
+ if [ -d ${LDPATH} ]
+ then
+ MY_LDPATH="${LDPATH}"
+ fi
else
- MY_LDPATH="${MY_LDPATH}:${LDPATH}"
+ if [ -d ${LDPATH} ]
+ then
+ MY_LDPATH="${MY_LDPATH}:${LDPATH}"
+ fi
fi
fi
done