diff options
author | wilko <wilko@FreeBSD.org> | 2000-01-22 18:33:24 +0000 |
---|---|---|
committer | wilko <wilko@FreeBSD.org> | 2000-01-22 18:33:24 +0000 |
commit | 8e0bff79d71b06023d55920729a4919eba947c73 (patch) | |
tree | 6074ff1791e8d5b30ccee652a5fd8727e903aebc /release | |
parent | 40153af4667b07eed21418357405355f37246b6b (diff) | |
download | FreeBSD-src-8e0bff79d71b06023d55920729a4919eba947c73.zip FreeBSD-src-8e0bff79d71b06023d55920729a4919eba947c73.tar.gz |
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 :(
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile index c67d84f..490a1f1 100644 --- a/release/Makefile +++ b/release/Makefile @@ -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}; \ |