aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.mirrors
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2019-06-25 14:56:13 +0000
committerGlen Barber <gjb@FreeBSD.org>2019-06-25 14:56:13 +0000
commit343a7eabf30393a4ee7b51469ddc804b9ac132a4 (patch)
tree3678d88b4e0dc1d3de3e12e7dc3f5e1be6f6c00d /release/Makefile.mirrors
parent8d048f68d4e0c1df38c6cb734b4de9dc491e3f2c (diff)
downloadsrc-343a7eabf30393a4ee7b51469ddc804b9ac132a4.tar.gz
src-343a7eabf30393a4ee7b51469ddc804b9ac132a4.zip
Include files containing metadata specific to the branch in the
directory where the individual distribution sets exist. The new metadata files include the build date, svn branch, and revision of the build. Requested by: Mellanox Technologies (via kib) MFC after: 3 days Sponsored by: Rubicon Communications, LLC (Netgate)
Notes
Notes: svn path=/head/; revision=349372
Diffstat (limited to 'release/Makefile.mirrors')
-rw-r--r--release/Makefile.mirrors4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/Makefile.mirrors b/release/Makefile.mirrors
index 44589d698c3c..6857ff0eafb1 100644
--- a/release/Makefile.mirrors
+++ b/release/Makefile.mirrors
@@ -19,6 +19,7 @@ FTPDIR?= ${RELEASEDIR}/ftp-stage
.if exists(${RELEASEDIR})
STAGE_TARGETS?= iso-images-stage
.endif
+SRCBRANCH!= ${SVN_CMD} info --show-item relative-url ${WORLDDIR}
.if (defined(EMBEDDED_TARGET) && !empty(EMBEDDED_TARGET)) || (defined(EMBEDDEDBUILD) && !empty(EMBEDDEDBUILD))
. if ${TARGET:Marm*} != "" || ${EMBEDDED_TARGET:Marm*} != ""
@@ -185,6 +186,9 @@ iso-images-stage:
.if exists(${RELEASEDIR}/ftp)
mkdir -p ${FTP_DIR}
cp -p ${RELEASEDIR}/ftp/*.txz ${RELEASEDIR}/ftp/MANIFEST ${FTP_DIR}
+ echo ${BUILDDATE} > ${FTP_DIR}/BUILDDATE
+ echo ${SRCBRANCH} > ${FTP_DIR}/SRCBRANCH
+ echo r${SVNREVISION} > ${FTP_DIR}/REVISION
cd ${TLD}/${TARGET} && \
ln -s ${TARGET_ARCH}/${REVISION}-${BRANCH} \
${REVISION}-${BRANCH}