aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2025-10-03 23:56:53 +0000
committerColin Percival <cperciva@FreeBSD.org>2025-10-03 23:56:53 +0000
commite64eb9ea0f4c88a9fa32ae3ae517cbe15a193a08 (patch)
tree4dced5c38eee914e7457c693552cb20f0f58f430
parent4b8b4c7dbf0fd4f946195dd7e8e4ddf10505beea (diff)
release: Respect NODISTSETS
In addition to not putting distribution sets onto ISO images, if NODISTSETS is set then we should not build the distribution sets or put them onto the "FTP" site (aka download.freebsd.org). MFC after: 3 days Sponsored by: https://www.patreon.com/cperciva
-rw-r--r--release/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/Makefile b/release/Makefile
index 8616d3817dd9..dcff6855db50 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -116,7 +116,10 @@ DISTRIBUTIONS+= ports.txz
DISTRIBUTIONS+= src.txz
.endif
-RELEASE_TARGETS= ftp
+RELEASE_TARGETS=
+.if !defined(NODISTSETS) || empty(NODISTSETS)
+RELEASE_TARGETS+= ftp
+.endif
IMAGES=
.if exists(${.CURDIR}/${TARGET}/mkisoimages.sh)
RELEASE_TARGETS+= cdrom
@@ -449,7 +452,9 @@ release-install:
.if defined(DESTDIR) && !empty(DESTDIR)
mkdir -p ${DESTDIR}
.endif
+.if !defined(NODISTSETS) || empty(NODISTSETS)
cp -a ftp ${DESTDIR}/
+.endif
.if !empty(IMAGES)
.for I in ${IMAGES}
cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I}