mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 21:44:34 +01:00
Fix staging virtual machine images for ftp propagation.
MFC after: 3 days X-MFC-Note: needs all previous changes Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
e9de8580dc
commit
57cb4b9323
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283302
@ -207,36 +207,47 @@ iso-images-stage:
|
|||||||
.endif # no RELEASEDIR
|
.endif # no RELEASEDIR
|
||||||
|
|
||||||
vm-images-stage:
|
vm-images-stage:
|
||||||
@true
|
mkdir -p ${VM_DIR}
|
||||||
# mkdir -p ${VM_DIR}
|
.if defined(SNAPSHOT) && !empty(SNAPSHOT)
|
||||||
#.if defined(SNAPSHOT) && !empty(SNAPSHOT)
|
. if exists(${VM_DIR}/Latest)
|
||||||
# mkdir -p ${VM_DIR}/${BUILDDATE}
|
rm -rf ${VM_DIR}/Latest
|
||||||
#. if exists(${VM_DIR}/Latest)
|
. endif
|
||||||
# unlink ${VM_DIR}/Latest
|
mkdir -p ${VM_DIR}/Latest
|
||||||
# cd ${VM_DIR} && ln -s ${BUILDDATE} Latest
|
mkdir -p ${VM_DIR}/${BUILDDATE}
|
||||||
#. endif
|
. for VMFORMAT in ${VMFORMATS}
|
||||||
#. for VMIMAGE in ${VMIMAGES}
|
cd ${RELEASEDIR}/vmimages && \
|
||||||
# cd /R/vmimages && cp -p ${VMIMAGE}.xz \
|
mv ${OSRELEASE}.${VMFORMAT}.xz \
|
||||||
# ${VM_DIR}/${BUILDDATE}/${OSRELEASE}-${SNAP_SUFFIX}-${VMIMAGE}.xz
|
${OSRELEASE}-${SNAP_SUFFIX}.${VMFORMAT}.xz
|
||||||
# cd ${VM_DIR}/Latest && ln -s \
|
cp -p ${RELEASEDIR}/vmimages/${OSRELEASE}-${SNAP_SUFFIX}.${VMFORMAT}.xz \
|
||||||
# ../${BUILDDATE}/${OSRELEASE}-${SNAP_SUFFIX}-${VMIMAGE}.xz \
|
${VM_DIR}/${BUILDDATE}/${OSRELEASE}-${SNAP_SUFFIX}.${VMFORMAT}.xz
|
||||||
# ${OSRELEASE}-${VMIMAGE}.xz
|
cd ${VM_DIR}/Latest && \
|
||||||
#. endfor
|
ln -s ../${BUILDDATE}/${OSRELEASE}-${SNAP_SUFFIX}.${VMFORMAT}.xz \
|
||||||
#. for CHECKSUM in ${CHECKSUM_FILES}
|
${OSRELEASE}.${VMFORMAT}.xz
|
||||||
#. if exists(${VM_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM})
|
. endfor
|
||||||
# rm -f ${VM_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM}
|
cd ${RELEASEDIR}/vmimages && rm -f CHECKSUM.*
|
||||||
#. endif
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
||||||
# cd ${VM_DIR}/${BUILDDATE} && ${CHECKSUM:tl} ${OSRELEASE}* > \
|
cd ${RELEASEDIR}/vmimages && \
|
||||||
# CHECKSUM.${CHECKSUM}-${REVISION}-${BRANCH}-${SNAP_SUFFIX}
|
${CHECKSUM:tl} ${OSRELEASE}* > CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
||||||
# cd ${VM_DIR}/Latest && ln -s \
|
cp -p ${RELEASEDIR}/vmimages/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
||||||
# ${VM_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
${VM_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
||||||
# CHECKSUM.${CHECKSUM}
|
cd ${VM_DIR}/Latest && \
|
||||||
#. endfor
|
ln -s ../${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
||||||
#.else # !snapshot
|
CHECKSUM.${CHECKSUM}
|
||||||
#. for CHECKSUM in ${CHECKSUM_FILES}
|
. endfor
|
||||||
# cd /R/vmimages && cp -p CHECKSUM.${CHECKSUM}* \
|
.else # not snapshot
|
||||||
# ${VM_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
. if exists(${VM_DIR}/Latest)
|
||||||
#.endif
|
rm -rf ${VM_DIR}/Latest
|
||||||
|
. endif
|
||||||
|
mkdir -p ${VM_DIR}/Latest
|
||||||
|
. for VMFORMAT in ${VMFORMATS}
|
||||||
|
cp -p ${RELEASEDIR}/vmimages/${OSRELEASE}.${VMFORMAT}.xz \
|
||||||
|
${VM_DIR}/Latest/${OSRELEASE}.${VMFORMAT}.xz
|
||||||
|
. endfor
|
||||||
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
||||||
|
cp -p ${RELEASEDIR}/vmimages/CHECKSUM.${CHECKSUM} \
|
||||||
|
${VM_DIR}/Latest/CHECKSUM.${CHECKSUM}
|
||||||
|
. endfor
|
||||||
|
.endif
|
||||||
|
|
||||||
ftp-stage: remove-old-bits ${STAGE_TARGETS}
|
ftp-stage: remove-old-bits ${STAGE_TARGETS}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user