From 50b4815cf07762c63677db8cebff955f9c5ebb20 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 31 Mar 2004 02:39:37 +0000 Subject: [PATCH] only rename manpage if its necessary --- ipmitool/doc/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ipmitool/doc/Makefile.am b/ipmitool/doc/Makefile.am index e6985c3..0544053 100644 --- a/ipmitool/doc/Makefile.am +++ b/ipmitool/doc/Makefile.am @@ -38,12 +38,14 @@ man_MANS = ipmitool.1 EXTRA_DIST = ipmitool.1.in install-data-hook: - if test -e $(mandir)/man1/ipmitool.1 ; then \ - mv $(mandir)/man1/ipmitool.1 $(mandir)/man1/@IPMITOOL_BIN@.1 ; \ + if test @IPMITOOL_BIN@ != ipmitool && \ + test -e $(mandir)/man1/ipmitool.1 ; then \ + mv -f $(mandir)/man1/ipmitool.1 $(mandir)/man1/@IPMITOOL_BIN@.1 ; \ fi uninstall-hook: - if test -e $(mandir)/man1/@IPMITOOL_BIN@.1 ; then \ - mv $(mandir)/man1/@IPMITOOL_BIN@.1 $(mandir)/man1/ipmitool.1 ; \ + if test @IPMITOOL_BIN@ != ipmitool && \ + test -e $(mandir)/man1/@IPMITOOL_BIN@.1 ; then \ + mv -f $(mandir)/man1/@IPMITOOL_BIN@.1 $(mandir)/man1/ipmitool.1 ; \ fi