changeset 7405:a25ee02b41c8

(uninstall): When processing lispdir and etcdir, do nothing unless it exists and is a directory.
author Richard M. Stallman <rms@gnu.org>
date Sun, 08 May 1994 19:51:59 +0000
parents ce1457fb5ea4
children 5d428cbd38ec
files Makefile.in
diffstat 1 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Sun May 08 06:45:49 1994 +0000
+++ b/Makefile.in	Sun May 08 19:51:59 1994 +0000
@@ -346,15 +346,17 @@
 	    prefix=${prefix} exec_prefix=${exec_prefix}	\
 	    bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
 	for dir in ${lispdir} ${etcdir} ; do 		\
-	  case `(cd $${dir} ; pwd)` in			\
-	    `(cd ${srcdir} ; pwd)`* ) ;;		\
-	    * ) rm -rf $${dir} ;;			\
-	  esac ;					\
-	  case $${dir} in				\
-	    ${datadir}/emacs/${version}/* )		\
-	      rm -rf ${datadir}/emacs/${version}	\
-	    ;;						\
-	  esac ;					\
+	  if [ -d $${dir} ]; then			\
+	    case `(cd $${dir} ; pwd)` in		\
+	      `(cd ${srcdir} ; pwd)`* ) ;;		\
+	      * ) rm -rf $${dir} ;;			\
+	    esac ;					\
+	    case $${dir} in				\
+	      ${datadir}/emacs/${version}/* )		\
+	        rm -rf ${datadir}/emacs/${version}	\
+	      ;;					\
+	    esac ;					\
+	  fi ;						\
 	done
 	(cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
 	(cd ${mandir};  rm -f emacs.1 etags.1 ctags.1)