changeset 22058:8299c71438c4

(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
author Richard M. Stallman <rms@gnu.org>
date Thu, 14 May 1998 04:58:47 +0000
parents 9b0a64c31e1c
children 23fda104cd36
files Makefile.in
diffstat 1 files changed, 14 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Thu May 14 03:55:13 1998 +0000
+++ b/Makefile.in	Thu May 14 04:58:47 1998 +0000
@@ -338,15 +338,21 @@
 	done
 	-rm -f ${lispdir}/subdirs.el
 	$(srcdir)/update-subdirs ${lispdir}
-	-rm -f ${datadir}/emacs/${version}/site-lisp/subdirs.el
-	-(echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
-	 echo "    (normal-top-level-add-subdirs-to-load-path))") \
-	  > ${datadir}/emacs/${version}/site-lisp/subdirs.el
+	if [ -f ${datadir}/emacs/${version}/site-lisp/subdirs.el ]; \
+	then true; \
+	else \
+	  (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
+	   echo "    (normal-top-level-add-subdirs-to-load-path))") \
+	    > ${datadir}/emacs/${version}/site-lisp/subdirs.el \
+	fi
 	chmod a+r ${datadir}/emacs/${version}/site-lisp/subdirs.el
-	-rm -f ${datadir}/emacs/site-lisp/subdirs.el
-	-(echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
-	 echo "    (normal-top-level-add-subdirs-to-load-path))") \
-	  > ${datadir}/emacs/site-lisp/subdirs.el
+	if [ -f ${datadir}/emacs/site-lisp/subdirs.el ]; \
+	then true; \
+	else \
+	  (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
+	   echo "    (normal-top-level-add-subdirs-to-load-path))") \
+	    > ${datadir}/emacs/site-lisp/subdirs.el \
+	fi
 	chmod a+r ${datadir}/emacs/site-lisp/subdirs.el
 	if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
 	then \