From e1fa48b5f3ad27d09dde43e5a98e0b6d5151fa45 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 6 Jan 1993 10:54:53 +0000 Subject: [PATCH] Don't "make LIB absolute" if already absolute, to avoid problems with the automounter. From-SVN: r3119 --- gcc/fixincludes | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/fixincludes b/gcc/fixincludes index d91589a49c8..b4d9872c407 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -32,8 +32,14 @@ if [ ! -d $LIB ]; then mkdir $LIB || exit 1 fi -# Make LIB absolute. -cd $LIB; LIB=`${PWDCMD}` +# Make LIB absolute only if needed to avoid problems with the amd. +case $LIB in +/*) + ;; +*) + cd $LIB; LIB=`${PWDCMD}` + ;; +esac # Fail if no arg to specify a directory for the output. if [ x$1 = x ] -- 2.30.2