summaryrefslogtreecommitdiffstats
path: root/sys/boot/alpha/common
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-05-06 18:31:26 +0000
committermsmith <msmith@FreeBSD.org>2000-05-06 18:31:26 +0000
commit95038a0854cc467d6a7555593db365dde5c9ee3e (patch)
treed7a35a0cf337438be47a49136b779ca578345584 /sys/boot/alpha/common
parent490c78cb0e81b4f47b19c9f4c6ff0147d2e40625 (diff)
downloadFreeBSD-src-95038a0854cc467d6a7555593db365dde5c9ee3e.zip
FreeBSD-src-95038a0854cc467d6a7555593db365dde5c9ee3e.tar.gz
Teach the alpha loader install process to make backup copies of the
boot programs when installing new versions.
Diffstat (limited to 'sys/boot/alpha/common')
-rw-r--r--sys/boot/alpha/common/Makefile.common7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/boot/alpha/common/Makefile.common b/sys/boot/alpha/common/Makefile.common
index fb2fc91..616e92a 100644
--- a/sys/boot/alpha/common/Makefile.common
+++ b/sys/boot/alpha/common/Makefile.common
@@ -58,9 +58,12 @@ ${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o setdef0.o
${BASE}.help: help.common help.alpha
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
-.ifdef INSTALL_HELP
beforeinstall:
-.if exists(${.OBJDIR}/loader.help)
+.if exists(${DESTDIR}/boot/${BASE})
+ mv ${DESTDIR}/boot/${BASE} ${DESTDIR}/boot/${BASE}.old
+.endif
+.ifdef INSTALL_HELP
+.if exists(${.OBJDIR}/${BASE}.help)
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
.else
OpenPOWER on IntegriCloud