]> git.eshelyaron.com Git - emacs.git/commitdiff
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
authorRichard M. Stallman <rms@gnu.org>
Thu, 14 May 1998 04:58:47 +0000 (04:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 14 May 1998 04:58:47 +0000 (04:58 +0000)
Makefile.in

index 5410bbdaff8f90effa6446beb78ca1e9ca591ee3..5073bbf40346cd77b7f5a317eb946836a9ae9933 100644 (file)
@@ -338,15 +338,21 @@ install-arch-indep: mkdir
        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 \