diff options
author | Richard Stallman <rms@gnu.org> | 1993-01-06 10:54:53 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-01-06 10:54:53 +0000 |
commit | e1fa48b5f3ad27d09dde43e5a98e0b6d5151fa45 (patch) | |
tree | dcf508890c4fced89de5d40b4874e5581b0ce725 /gcc/fixincludes | |
parent | 6ef797eaac447ab835cc6f2c7ff5aec8d9c81030 (diff) | |
download | gcc-e1fa48b5f3ad27d09dde43e5a98e0b6d5151fa45.zip gcc-e1fa48b5f3ad27d09dde43e5a98e0b6d5151fa45.tar.gz gcc-e1fa48b5f3ad27d09dde43e5a98e0b6d5151fa45.tar.bz2 |
Don't "make LIB absolute" if already absolute,
to avoid problems with the automounter.
From-SVN: r3119
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-x | gcc/fixincludes | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index d91589a..b4d9872 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 ] |