mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
only rename manpage if its necessary
This commit is contained in:
parent
4677f14f6c
commit
50b4815cf0
@ -38,12 +38,14 @@ man_MANS = ipmitool.1
|
|||||||
EXTRA_DIST = ipmitool.1.in
|
EXTRA_DIST = ipmitool.1.in
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
if test -e $(mandir)/man1/ipmitool.1 ; then \
|
if test @IPMITOOL_BIN@ != ipmitool && \
|
||||||
mv $(mandir)/man1/ipmitool.1 $(mandir)/man1/@IPMITOOL_BIN@.1 ; \
|
test -e $(mandir)/man1/ipmitool.1 ; then \
|
||||||
|
mv -f $(mandir)/man1/ipmitool.1 $(mandir)/man1/@IPMITOOL_BIN@.1 ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
if test -e $(mandir)/man1/@IPMITOOL_BIN@.1 ; then \
|
if test @IPMITOOL_BIN@ != ipmitool && \
|
||||||
mv $(mandir)/man1/@IPMITOOL_BIN@.1 $(mandir)/man1/ipmitool.1 ; \
|
test -e $(mandir)/man1/@IPMITOOL_BIN@.1 ; then \
|
||||||
|
mv -f $(mandir)/man1/@IPMITOOL_BIN@.1 $(mandir)/man1/ipmitool.1 ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user