From 27116657a36553d17e14c30fcbc5f8f8f682eda5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 16 Nov 1995 21:59:46 +0000 Subject: [PATCH] (install-arch-indep): Rename old info/dir only if exists. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- 2.39.2