to avoid problems with the automounter.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3137
138bc75d-0d04-0410-961f-
82ee72b054a4
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}
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
# This prevents /bin/ex from failing if the current terminal type is
# unrecognizable.