We shouldn't use cp to save the old ld-elf.so.1. Use the sanctioned tool

${INSTALL} with -C -p instead.
This commit is contained in:
Brian Feldman 2000-07-20 08:00:02 +00:00
parent a526cb9e31
commit 119fc1a3ce

View File

@ -52,5 +52,6 @@ beforeinstall:
.if exists(${DESTDIR}${BINDIR}/${PROG}.old)
-chflags noschg ${DESTDIR}${BINDIR}/${PROG}.old
.endif
cp -p ${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/${PROG}.old
${INSTALL} -C -p ${DESTDIR}${BINDIR}/${PROG} \
${DESTDIR}${BINDIR}/${PROG}.old
.endif