diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-05-14 04:58:47 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-05-14 04:58:47 +0000 |
commit | 9f059d3c2157377329af2fc35f8439fe63fef5e9 (patch) | |
tree | 8ec4316275e177271a5e7fc8e98f50f29c717542 /Makefile.in | |
parent | cbe9a46020c7c508624f8262f6b47d776839845f (diff) | |
download | emacs-9f059d3c2157377329af2fc35f8439fe63fef5e9.tar.gz |
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in index 5410bbdaff8..5073bbf4034 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 \ |