Create backup copies using install(1).
This commit is contained in:
parent
9de6241784
commit
188cdfac56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83368
@ -39,6 +39,7 @@ CFLAGS+= -I${.CURDIR}/..
|
||||
CRT= start.o
|
||||
STRIP=
|
||||
BINDIR?= /boot
|
||||
INSTALLFLAGS?= -b
|
||||
|
||||
all: ${BASE} ${BASE}.help
|
||||
|
||||
@ -58,9 +59,6 @@ ${BASE}.help: help.common help.alpha
|
||||
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
|
||||
|
||||
beforeinstall:
|
||||
.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 \
|
||||
|
@ -6,6 +6,7 @@ PROG= ${BASE}
|
||||
STRIP=
|
||||
NEWVERSWHAT= "bootstrap loader" i386
|
||||
BINDIR?= /boot
|
||||
INSTALLFLAGS= -b
|
||||
|
||||
# architecture-specific loader code
|
||||
SRCS= main.c conf.c
|
||||
@ -94,9 +95,6 @@ ${BASE}.help: help.common help.i386
|
||||
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
|
||||
|
||||
beforeinstall:
|
||||
.if exists(${DESTDIR}/boot/loader)
|
||||
mv ${DESTDIR}/boot/loader ${DESTDIR}/boot/loader.old
|
||||
.endif
|
||||
.if exists(${.OBJDIR}/loader.help)
|
||||
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
|
||||
|
@ -6,6 +6,7 @@ PROG= ${BASE}
|
||||
STRIP=
|
||||
NEWVERSWHAT= "bootstrap loader" pc98
|
||||
BINDIR?= /boot
|
||||
INSTALLFLAGS= -b
|
||||
|
||||
CFLAGS+= -DPC98
|
||||
|
||||
@ -97,9 +98,6 @@ ${BASE}.help: help.common help.i386
|
||||
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
|
||||
|
||||
beforeinstall:
|
||||
.if exists(${DESTDIR}/boot/loader)
|
||||
mv ${DESTDIR}/boot/loader ${DESTDIR}/boot/loader.old
|
||||
.endif
|
||||
.if exists(${.OBJDIR}/loader.help)
|
||||
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
|
||||
|
@ -6,6 +6,7 @@ NOMAN=
|
||||
STRIP=
|
||||
NEWVERSWHAT= "bootstrap loader" OpenFirmware/PowerPC
|
||||
BINDIR?= /boot
|
||||
INSTALLFLAGS= -b
|
||||
|
||||
LOADER_DISK_SUPPORT?= yes
|
||||
LOADER_NET_SUPPORT?= yes
|
||||
@ -76,9 +77,6 @@ ${BASE}.help: help.common help.ofw
|
||||
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
|
||||
|
||||
beforeinstall:
|
||||
.if exists(${DESTDIR}/boot/loader)
|
||||
mv ${DESTDIR}/boot/loader ${DESTDIR}/boot/loader.old
|
||||
.endif
|
||||
.if exists(${.OBJDIR}/loader.help)
|
||||
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
|
||||
|
@ -6,6 +6,7 @@ NOMAN=
|
||||
STRIP=
|
||||
NEWVERSWHAT= "bootstrap loader" OpenFirmware/PowerPC
|
||||
BINDIR?= /boot
|
||||
INSTALLFLAGS= -b
|
||||
|
||||
LOADER_DISK_SUPPORT?= yes
|
||||
LOADER_NET_SUPPORT?= yes
|
||||
@ -76,9 +77,6 @@ ${BASE}.help: help.common help.ofw
|
||||
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
|
||||
|
||||
beforeinstall:
|
||||
.if exists(${DESTDIR}/boot/loader)
|
||||
mv ${DESTDIR}/boot/loader ${DESTDIR}/boot/loader.old
|
||||
.endif
|
||||
.if exists(${.OBJDIR}/loader.help)
|
||||
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
|
||||
|
Loading…
Reference in New Issue
Block a user