]> git.eshelyaron.com Git - emacs.git/commitdiff
(install-arch-indep): Always install the new dir file;
authorRichard M. Stallman <rms@gnu.org>
Wed, 6 Sep 1995 15:18:29 +0000 (15:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 6 Sep 1995 15:18:29 +0000 (15:18 +0000)
rename the previous dir file to dir.bak or dir.old.

Makefile.in

index 7236014e39094a204bb386ac718326790556034a..6751aa488818a80fb39744a9c7ed2e75017b015f 100644 (file)
@@ -349,9 +349,11 @@ install-arch-indep: mkdir
        thisdir=`/bin/pwd`; \
        if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
        then \
-         (cd ${srcdir}/info ; \
-          if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
-            (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \
+         (cd ${infodir};  \
+          if [ ! -f dir.old ]; then mv -f dir dir.old; \
+          else mv -f dir dir.bak; fi; \
+          cd ${srcdir}/info ; \
+          (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \
           fi ; \
           for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \
             (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f); \