aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-12-08 00:48:50 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-12-08 00:48:50 +0000
commit3083b412e9fe246d325006f0b00bd63bd4f7445f (patch)
tree17c0edeb074a8e7afb52e9d9cf41749fcf68fb8e /release
parenta0b9e2e854027e6ff61fb075a1309dbc71c42b54 (diff)
downloadsrc-3083b412e9fe246d325006f0b00bd63bd4f7445f.tar.gz
src-3083b412e9fe246d325006f0b00bd63bd4f7445f.zip
release: don't checksum images if there are none
For platforms that don't have any of the memstick, cdrom, or dvdrom release images (i.e. riscv64), the release-install target will trip up when invoking md5(1) on the non-existent image files. Skipping this allows the install to complete successfully.
Notes
Notes: svn path=/head/; revision=368424
Diffstat (limited to 'release')
-rw-r--r--release/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/Makefile b/release/Makefile
index 2e828469ed21..3df1e461d64e 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -317,6 +317,7 @@ release-install:
mkdir -p ${DESTDIR}
.endif
cp -a ftp ${DESTDIR}/
+.if !empty(IMAGES)
.for I in ${IMAGES}
cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I}
. if defined(WITH_COMPRESSED_IMAGES) && !empty(WITH_COMPRESSED_IMAGES)
@@ -325,6 +326,7 @@ release-install:
.endfor
cd ${DESTDIR} && sha512 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA512
cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256
+.endif
.include "${.CURDIR}/Makefile.inc1"
.include "${.CURDIR}/Makefile.vm"