aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.mirrors
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-12 00:27:52 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-12 00:27:52 +0000
commitbe59bc7ae9f905cd5cddca6136c398c714b1efd6 (patch)
tree606dc70b196e2a615cf61e39caf8cc442e66227e /release/Makefile.mirrors
parent23454946628263dd3d7d3a7751d43f61ec0ba656 (diff)
downloadsrc-be59bc7ae9f905cd5cddca6136c398c714b1efd6.tar.gz
src-be59bc7ae9f905cd5cddca6136c398c714b1efd6.zip
Always use the 'make install' directory as the source for images.
For RE purposes, we use the default (/R within the chroot), so this helps avoid copying files multiple times and xz(1)-compressing additional times when not needed. Again, this Makefile is not for general consumption. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=282787
Diffstat (limited to 'release/Makefile.mirrors')
-rw-r--r--release/Makefile.mirrors20
1 files changed, 13 insertions, 7 deletions
diff --git a/release/Makefile.mirrors b/release/Makefile.mirrors
index 9fdb2ffcc012..2eabcdff6547 100644
--- a/release/Makefile.mirrors
+++ b/release/Makefile.mirrors
@@ -11,6 +11,7 @@
.include "${.CURDIR}/Makefile"
FTPDIR?= /ftp
+RELEASEDIR?= /R
STAGE_TARGETS?= iso-images-stage
# snapshot
@@ -57,12 +58,17 @@ FTP_DIR= ${TLD}/${TARGET}/${TARGET_ARCH}/${REVISION}-${BRANCH}
iso-images-stage:
mkdir -p ${ISO_DIR}
mkdir -p ${TLD}/ISO-IMAGES/${REVISION}
-.for IMAGE in ${IMAGES}
- cp -p ${.OBJDIR}/${IMAGE} ${ISO_DIR}/${OSRELEASE}-${IMAGE}
-. if exists(/R/${IMAGE}.xz)
- cp -p ${.OBJDIR}/${IMAGE}.xz ${ISO_DIR}/${OSRELEASE}-${IMAGE}.xz
+.if exists(${RELEASEDIR})
+ @# Assume we have images to copy.
+. for IMAGE in ${IMAGES}
+ cp -p ${RELEASEDIR}/${OSRELEASE}-${IMAGE} \
+ ${ISO_DIR}/${OSRELEASE}-${IMAGE}
+. if exists(/R/${IMAGE}.xz)
+ cp -p ${RELEASEDIR}/${IMAGE}.xz \
+ ${ISO_DIR}/${OSRELEASE}-${IMAGE}.xz
. endif
-.endfor
+.endif
+
.if defined(SNAPSHOT) && !empty(SNAPSHOT)
. for IMAGE in ${IMAGES}
cd ${ISO_DIR} && mv ${OSRELEASE}-${IMAGE} \
@@ -84,9 +90,9 @@ iso-images-stage:
cd ${ISO_DIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
CHECKSUM.${CHECKSUM}-${REVISION}-${BRANCH}-${SNAP_SUFFIX}
.endif
-.if exists(${.OBJDIR}/ftp)
+.if exists(${RELEASEDIR}/ftp)
mkdir -p ${FTP_DIR}
- cp ${.OBJDIR}/ftp/*.txz ${.OBJDIR}/ftp/MANIFEST ${FTP_DIR}
+ cp ${RELEASEDIR}/ftp/*.txz ${RELEASEDIR}/ftp/MANIFEST ${FTP_DIR}
cd ${TLD}/${TARGET} && \
ln -s ${TARGET_ARCH}/${REVISION}-${BRANCH} \
${REVISION}-${BRANCH}