summaryrefslogtreecommitdiff
path: root/gcc/fixinc.sco
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-01-07 00:31:40 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-01-07 00:31:40 +0000
commit4de6dd7f03346c706744d344019ad46e50a398b4 (patch)
tree211654d15a0672a479095715586777d508cd737d /gcc/fixinc.sco
parent33309fd6f08bfac5aad0ab3d1cf5c6906cba449a (diff)
downloadgcc-4de6dd7f03346c706744d344019ad46e50a398b4.tar.gz
Don't "make LIB absolute" if already absolute,
to avoid problems with the automounter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.sco')
-rwxr-xr-xgcc/fixinc.sco11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/fixinc.sco b/gcc/fixinc.sco
index c28039d7065..ad849892cca 100755
--- a/gcc/fixinc.sco
+++ b/gcc/fixinc.sco
@@ -58,8 +58,15 @@ fi
ORIG_DIR=`pwd`
-# Make LIB absolute.
-cd $LIB; LIB=`pwd`
+# Make LIB absolute if it is relative.
+# Don't do this if not necessary, since may screw up automounters.
+case $LIB in
+/*)
+ ;;
+*)
+ cd $LIB; LIB=`${PWDCMD}`
+ ;;
+esac
echo 'Building fixincludes in ' ${LIB}