From: Richard M. Stallman Date: Thu, 16 Nov 1995 21:59:46 +0000 (+0000) Subject: (install-arch-indep): Rename old info/dir only if exists. X-Git-Tag: emacs-19.34~2290 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27116657a36553d17e14c30fcbc5f8f8f682eda5;p=emacs.git (install-arch-indep): Rename old info/dir only if exists. --- diff --git a/Makefile.in b/Makefile.in index 6fd78d54ebc..623423d7946 100644 --- a/Makefile.in +++ b/Makefile.in @@ -352,7 +352,7 @@ install-arch-indep: mkdir if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ then \ (cd ${infodir}; \ - if [ ! -f dir.old ]; then mv -f dir dir.old; \ + if [ -f dir ] && [ ! -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); \