Check if the various .TXT files exist before trying to copy them.

Oh why did I select a first project that needed to touch release/Makefile..
The fact that my release-building Alpha panics on me does not help either :(
This commit is contained in:
Wilko Bulte 2000-01-22 18:33:24 +00:00
parent d7f9c2f27a
commit 10c6fb3dd8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56401

View File

@ -527,7 +527,9 @@ ftp.1:
@cd ${RD} && find floppies -print | cpio -dumpl ${FD}
@cd ${RD}/dists && find . -print | cpio -dumpl ${FD}
@for i in ${DIST_DOCS}; do \
cp ${.CURDIR}/texts/$${i} ${FD}; \
if [ -f ${.CURDIR}/texts/$${i} ]; then \
cp ${.CURDIR}/texts/$${i} ${FD}; \
fi; \
if [ -f ${.CURDIR}/texts/${MACHINE_ARCH}/$${i} ]; then \
echo "=== Platform specifics for ${MACHINE_ARCH}" >> ${FD}/$${i}; \
cat ${.CURDIR}/texts/${MACHINE_ARCH}/$${i} >> ${FD}/$${i}; \
@ -560,7 +562,9 @@ cdrom.1:
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC1}/cdrom.inf
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC2}/cdrom.inf
@for i in ${DIST_DOCS}; do \
cp ${.CURDIR}/texts/$${i} ${CD_DISC1}; \
if [ -f ${.CURDIR}/texts/$${i}; then \
cp ${.CURDIR}/texts/$${i} ${CD_DISC1}; \
fi; \
if [ -f ${.CURDIR}/texts/${MACHINE_ARCH}/$${i} ]; then \
echo "=== Platform specifics for ${MACHINE_ARCH}" >> ${FD}/$${i}; \
cat ${.CURDIR}/texts/${MACHINE_ARCH}/$${i} >> ${CD_DISC1}/$${i}; \