2015-05-12 00:14:03 +02:00
|
|
|
#
|
|
|
|
# This Makefile helps create the directory structure on ftp-master,
|
|
|
|
# making staging builds a bit more sane.
|
|
|
|
#
|
|
|
|
# You probably do not want to use this. Really.
|
|
|
|
# You have been warned.
|
|
|
|
#
|
2015-05-12 03:20:27 +02:00
|
|
|
# Seriously.
|
|
|
|
#
|
|
|
|
# Don't use this unless you know why you're using it.
|
|
|
|
#
|
2015-05-12 00:14:03 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "${.CURDIR}/Makefile"
|
|
|
|
|
2015-05-12 02:27:52 +02:00
|
|
|
RELEASEDIR?= /R
|
2015-05-12 03:27:58 +02:00
|
|
|
FTPDIR?= ${RELEASEDIR}/ftp-stage
|
2015-05-26 19:40:36 +02:00
|
|
|
.if exists(${RELEASEDIR})
|
2015-05-12 00:14:03 +02:00
|
|
|
STAGE_TARGETS?= iso-images-stage
|
2015-05-26 19:40:36 +02:00
|
|
|
.endif
|
2015-05-12 00:14:03 +02:00
|
|
|
|
2015-05-22 23:04:42 +02:00
|
|
|
.if (defined(EMBEDDED_TARGET) && !empty(EMBEDDED_TARGET)) || (defined(EMBEDDEDBUILD) && !empty(EMBEDDEDBUILD))
|
2020-12-09 21:38:26 +01:00
|
|
|
. if ${TARGET:Marm*} != "" || ${EMBEDDED_TARGET:Marm*} != "" || ${TARGET:Mriscv*} != ""
|
2015-05-22 00:11:57 +02:00
|
|
|
EMBEDDED= 1
|
2015-05-22 00:50:39 +02:00
|
|
|
. endif
|
2015-05-22 00:11:57 +02:00
|
|
|
.endif
|
|
|
|
|
2015-05-12 00:14:03 +02:00
|
|
|
# snapshot
|
2016-05-27 03:07:48 +02:00
|
|
|
.if ${BRANCH} == "STABLE" || ${BRANCH} == "CURRENT" || ${BRANCH} == "PRERELEASE" || ${BRANCH:MALPHA*} != ""
|
2015-05-12 00:14:03 +02:00
|
|
|
SNAPSHOT= 1
|
|
|
|
TLD?= ${FTPDIR}/snapshots
|
Makefile.inc1:
- New file. Adds logic to search for the git binary, as well
as determining the branch and revision, used in various
places.
Makefile:
- Remove searching for the svn{,lite} binary.
Makefile.ec2:
- Reduce duplicated code, removing searching for the svn{,lite}
binary, in addition to EC2_SVN{BRANCH,REV}.
- Rename EC2_SVN* with GIT* for consistency.
Makefile.mirrors:
- Remove the SRCBRANCH declaration, replaced with the exported
GITBRANCH variable.
- Update _SNAP_SUFFIX from SVNREVISION to GITREV, and remove
the leading 'r' from it, since it will break git hashes.
- Remove yet another instance of duplicated code to search for
the svn{,version}lite binary.
Sponsored by: Rubicon Communications, LLC (netgate.com)
2020-07-16 22:34:26 +02:00
|
|
|
.if !defined(BUILDDATE) || empty(BUILDDATE)
|
2015-05-22 00:11:57 +02:00
|
|
|
BUILDDATE!= date +%Y%m%d
|
Makefile.inc1:
- New file. Adds logic to search for the git binary, as well
as determining the branch and revision, used in various
places.
Makefile:
- Remove searching for the svn{,lite} binary.
Makefile.ec2:
- Reduce duplicated code, removing searching for the svn{,lite}
binary, in addition to EC2_SVN{BRANCH,REV}.
- Rename EC2_SVN* with GIT* for consistency.
Makefile.mirrors:
- Remove the SRCBRANCH declaration, replaced with the exported
GITBRANCH variable.
- Update _SNAP_SUFFIX from SVNREVISION to GITREV, and remove
the leading 'r' from it, since it will break git hashes.
- Remove yet another instance of duplicated code to search for
the svn{,version}lite binary.
Sponsored by: Rubicon Communications, LLC (netgate.com)
2020-07-16 22:34:26 +02:00
|
|
|
.endif
|
2020-12-16 19:40:49 +01:00
|
|
|
_SNAP_SUFFIX:= ${BUILDDATE}-${GITREV}-${GITCOUNT}
|
2015-05-12 00:14:03 +02:00
|
|
|
.else
|
|
|
|
# release
|
|
|
|
SNAPSHOT=
|
|
|
|
TLD?= ${FTPDIR}/releases
|
|
|
|
.endif
|
|
|
|
|
2015-05-22 00:11:57 +02:00
|
|
|
.if defined(EMBEDDED) && !empty(EMBEDDED)
|
2020-12-09 21:38:26 +01:00
|
|
|
. if ${TARGET:Marm*} != "" && (${TARGET_ARCH:Marm*} != "" || ${TARGET_ARCH} == "aarch64") || ${TARGET:Mriscv*} != ""
|
2016-05-27 03:07:48 +02:00
|
|
|
. if ${BRANCH} == "STABLE" || ${BRANCH} == "CURRENT" || ${BRANCH} == "PRERELEASE" || ${BRANCH:MALPHA*} != ""
|
2015-05-22 00:11:57 +02:00
|
|
|
SNAPSHOT= 1
|
|
|
|
. endif
|
2015-05-22 23:04:42 +02:00
|
|
|
IMAGES:= img
|
2015-05-22 00:11:57 +02:00
|
|
|
. endif # arm/armv6
|
|
|
|
.endif # embedded
|
|
|
|
|
2015-05-12 00:14:03 +02:00
|
|
|
.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
|
|
|
|
STAGE_TARGETS+= vm-images-stage
|
|
|
|
VM_DIR= ${TLD}/VM-IMAGES/${REVISION}-${BRANCH}/${TARGET_ARCH}
|
|
|
|
.endif
|
|
|
|
|
2024-06-19 21:28:42 +02:00
|
|
|
.if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE)
|
|
|
|
STAGE_TARGETS+= ci-images-stage
|
|
|
|
CI_DIR= ${TLD}/CI-IMAGES/${REVISION}-${BRANCH}/${TARGET_ARCH}
|
|
|
|
.endif
|
|
|
|
|
2015-05-12 00:14:03 +02:00
|
|
|
CLEANFILES+= ${STAGE_TARGETS}
|
2015-10-15 00:33:11 +02:00
|
|
|
CHECKSUM_FILES?= SHA512 SHA256
|
2015-05-12 00:14:03 +02:00
|
|
|
SNAP_SUFFIX!= echo ${_SNAP_SUFFIX:S,^-,,1} | tr -d ' '
|
|
|
|
ISO_DIR= ${TLD}/${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}
|
|
|
|
FTP_DIR= ${TLD}/${TARGET}/${TARGET_ARCH}/${REVISION}-${BRANCH}
|
|
|
|
|
2015-05-12 02:30:56 +02:00
|
|
|
remove-old-bits:
|
|
|
|
rm -rf ${FTPDIR}
|
|
|
|
|
2015-05-12 00:14:03 +02:00
|
|
|
iso-images-stage:
|
|
|
|
mkdir -p ${ISO_DIR}
|
|
|
|
mkdir -p ${TLD}/ISO-IMAGES/${REVISION}
|
2015-05-26 19:44:31 +02:00
|
|
|
.if defined(SNAPSHOT) && !empty(SNAPSHOT)
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && rm -f CHECKSUM.*
|
2015-05-26 19:44:31 +02:00
|
|
|
. for IMAGE in ${IMAGES}
|
|
|
|
. if defined(EMBEDDED) && !empty(EMBEDDED)
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && \
|
|
|
|
mv ${OSRELEASE}-${BOARDNAME}.${IMAGE}.xz \
|
|
|
|
${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}.${IMAGE}.xz
|
|
|
|
cp -p ${RELEASEDIR}/${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}.${IMAGE}.xz \
|
|
|
|
${ISO_DIR}/${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}.${IMAGE}.xz
|
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}.${IMAGE}.xz
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif # not embedded
|
|
|
|
. if exists(${RELEASEDIR}/${OSRELEASE}-${IMAGE})
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && \
|
|
|
|
mv ${OSRELEASE}-${IMAGE} \
|
2015-05-26 19:34:56 +02:00
|
|
|
${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE} \
|
|
|
|
${ISO_DIR}/${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}
|
2015-05-12 00:14:03 +02:00
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
2015-05-22 23:04:42 +02:00
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif
|
|
|
|
. if exists(${RELEASEDIR}/${OSRELEASE}-${IMAGE}.xz)
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && \
|
|
|
|
mv ${OSRELEASE}-${IMAGE}.xz \
|
2015-05-26 19:34:56 +02:00
|
|
|
${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}.xz
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}.xz \
|
|
|
|
${ISO_DIR}/${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}.xz
|
2015-05-21 22:18:13 +02:00
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
2015-05-22 23:04:42 +02:00
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/${OSRELEASE}-${SNAP_SUFFIX}-${IMAGE}.xz
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif
|
|
|
|
. endfor # images loop
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && rm -f CHECKSUM.*
|
2015-05-26 19:44:31 +02:00
|
|
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
|
|
|
. if defined(EMBEDDED) && !empty(EMBEDDED)
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
|
2015-05-22 00:11:57 +02:00
|
|
|
CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX} \
|
|
|
|
${ISO_DIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}
|
2015-05-22 00:11:57 +02:00
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}-${SNAP_SUFFIX}
|
2015-05-26 19:44:31 +02:00
|
|
|
. else # not embedded
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
|
2015-05-21 22:18:13 +02:00
|
|
|
CHECKSUM.${CHECKSUM}-${OSRELEASE}-${SNAP_SUFFIX}
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${SNAP_SUFFIX} \
|
|
|
|
${ISO_DIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${SNAP_SUFFIX}
|
2015-05-12 03:04:02 +02:00
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
2015-05-12 02:55:28 +02:00
|
|
|
ln -s \
|
2015-05-21 22:18:13 +02:00
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${SNAP_SUFFIX}
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif #
|
|
|
|
. endfor # checksum files
|
|
|
|
.else # not snapshot
|
|
|
|
. for IMAGE in ${IMAGES}
|
|
|
|
. if defined(EMBEDDED) && !empty(EMBEDDED)
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/${OSRELEASE}-${BOARDNAME}.${IMAGE}.xz \
|
|
|
|
${ISO_DIR}/${OSRELEASE}-${BOARDNAME}.${IMAGE}.xz
|
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/${OSRELEASE}-${BOARDNAME}.${IMAGE}.xz
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif # not embedded
|
|
|
|
. if exists(${RELEASEDIR}/${OSRELEASE}-${IMAGE})
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && \
|
|
|
|
cp -p ${RELEASEDIR}/${OSRELEASE}-${IMAGE} \
|
|
|
|
${ISO_DIR}/${OSRELEASE}-${IMAGE}
|
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/${OSRELEASE}-${IMAGE}
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif
|
|
|
|
. if exists(${RELEASEDIR}/${OSRELEASE}-${IMAGE}.xz)
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/${OSRELEASE}-${IMAGE}.xz \
|
|
|
|
${ISO_DIR}/${OSRELEASE}-${IMAGE}.xz
|
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/${OSRELEASE}-${IMAGE}.xz
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif
|
|
|
|
. endfor # images loop
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && rm -f CHECKSUM.*
|
2015-05-26 19:44:31 +02:00
|
|
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
|
|
|
. if defined(EMBEDDED) && !empty(EMBEDDED)
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
|
|
|
|
CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}
|
|
|
|
cp -p ${RELEASEDIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME} \
|
|
|
|
${ISO_DIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}
|
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/CHECKSUM.${CHECKSUM}-${OSRELEASE}-${BOARDNAME}
|
2015-05-26 19:44:31 +02:00
|
|
|
. else # not embedded
|
2015-05-22 23:04:42 +02:00
|
|
|
cd ${RELEASEDIR} && ${CHECKSUM:tl} ${OSRELEASE}* > \
|
2015-05-21 22:22:55 +02:00
|
|
|
CHECKSUM.${CHECKSUM}-${OSRELEASE}
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE} \
|
|
|
|
${ISO_DIR}/CHECKSUM.${CHECKSUM}-${OSRELEASE}
|
|
|
|
cd ${TLD}/ISO-IMAGES/${REVISION} && \
|
|
|
|
ln -s \
|
|
|
|
../../${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}/CHECKSUM.${CHECKSUM}-${OSRELEASE}
|
2015-05-26 19:44:31 +02:00
|
|
|
. endif
|
|
|
|
. endfor # checksum files
|
|
|
|
.endif # release
|
|
|
|
.if exists(${RELEASEDIR}/ftp)
|
2015-05-12 00:14:03 +02:00
|
|
|
mkdir -p ${FTP_DIR}
|
2015-05-22 23:04:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/ftp/*.txz ${RELEASEDIR}/ftp/MANIFEST ${FTP_DIR}
|
2019-06-25 16:56:13 +02:00
|
|
|
echo ${BUILDDATE} > ${FTP_DIR}/BUILDDATE
|
Makefile.inc1:
- New file. Adds logic to search for the git binary, as well
as determining the branch and revision, used in various
places.
Makefile:
- Remove searching for the svn{,lite} binary.
Makefile.ec2:
- Reduce duplicated code, removing searching for the svn{,lite}
binary, in addition to EC2_SVN{BRANCH,REV}.
- Rename EC2_SVN* with GIT* for consistency.
Makefile.mirrors:
- Remove the SRCBRANCH declaration, replaced with the exported
GITBRANCH variable.
- Update _SNAP_SUFFIX from SVNREVISION to GITREV, and remove
the leading 'r' from it, since it will break git hashes.
- Remove yet another instance of duplicated code to search for
the svn{,version}lite binary.
Sponsored by: Rubicon Communications, LLC (netgate.com)
2020-07-16 22:34:26 +02:00
|
|
|
echo ${GITBRANCH} > ${FTP_DIR}/GITBRANCH
|
|
|
|
echo ${GITREV} > ${FTP_DIR}/REVISION
|
2015-05-12 00:14:03 +02:00
|
|
|
cd ${TLD}/${TARGET} && \
|
|
|
|
ln -s ${TARGET_ARCH}/${REVISION}-${BRANCH} \
|
|
|
|
${REVISION}-${BRANCH}
|
2015-05-26 19:44:31 +02:00
|
|
|
.endif
|
2015-05-12 00:14:03 +02:00
|
|
|
|
|
|
|
vm-images-stage:
|
2015-05-22 23:38:11 +02:00
|
|
|
mkdir -p ${VM_DIR}
|
|
|
|
.if defined(SNAPSHOT) && !empty(SNAPSHOT)
|
|
|
|
. if exists(${VM_DIR}/Latest)
|
|
|
|
rm -rf ${VM_DIR}/Latest
|
|
|
|
. endif
|
|
|
|
mkdir -p ${VM_DIR}/Latest
|
|
|
|
mkdir -p ${VM_DIR}/${BUILDDATE}
|
|
|
|
. for VMFORMAT in ${VMFORMATS}
|
2024-05-01 19:56:51 +02:00
|
|
|
. for FS in ${VMFSLIST}
|
|
|
|
cd ${RELEASEDIR}/vmimages && \
|
|
|
|
mv ${OSRELEASE}-${FS}.${VMFORMAT}.xz \
|
|
|
|
${OSRELEASE}-${FS}-${SNAP_SUFFIX}.${VMFORMAT}.xz
|
|
|
|
cp -p ${RELEASEDIR}/vmimages/${OSRELEASE}-${FS}-${SNAP_SUFFIX}.${VMFORMAT}.xz \
|
|
|
|
${VM_DIR}/${BUILDDATE}/${OSRELEASE}-${FS}-${SNAP_SUFFIX}.${VMFORMAT}.xz
|
|
|
|
cd ${VM_DIR}/Latest && \
|
|
|
|
ln -s ../${BUILDDATE}/${OSRELEASE}-${FS}-${SNAP_SUFFIX}.${VMFORMAT}.xz \
|
|
|
|
${OSRELEASE}-${FS}.${VMFORMAT}.xz
|
|
|
|
. endfor
|
2024-06-19 21:28:42 +02:00
|
|
|
. endfor
|
2024-06-21 02:38:46 +02:00
|
|
|
. if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE)
|
|
|
|
. for CW in ${CLOUDWARE}
|
|
|
|
. if ${CW} == BASIC-CLOUDINIT
|
|
|
|
. for VMFORMAT in ${${CW}_FORMAT}
|
|
|
|
. for FS in ${${CW}_FSLIST}
|
2024-06-19 21:28:42 +02:00
|
|
|
cd ${RELEASEDIR}/vmimages && \
|
|
|
|
mv ${OSRELEASE}-${CW}.${FS}.${VMFORMAT}.xz \
|
|
|
|
${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz
|
|
|
|
cp -p ${RELEASEDIR}/vmimages/${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz \
|
|
|
|
${VM_DIR}/${BUILDDATE}/${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz
|
|
|
|
cd ${VM_DIR}/Latest && \
|
|
|
|
ln -s ../${BUILDDATE}/${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz \
|
|
|
|
${OSRELEASE}-${CW}.${FS}.${VMFORMAT}.xz
|
2024-06-21 02:38:46 +02:00
|
|
|
. endfor
|
2024-06-19 21:28:42 +02:00
|
|
|
. endfor
|
2024-06-21 02:38:46 +02:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. endif
|
2015-05-22 23:38:11 +02:00
|
|
|
cd ${RELEASEDIR}/vmimages && rm -f CHECKSUM.*
|
|
|
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
|
|
|
cd ${RELEASEDIR}/vmimages && \
|
|
|
|
${CHECKSUM:tl} ${OSRELEASE}* > CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
|
|
|
cp -p ${RELEASEDIR}/vmimages/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
|
|
|
${VM_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
|
|
|
cd ${VM_DIR}/Latest && \
|
|
|
|
ln -s ../${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
|
|
|
CHECKSUM.${CHECKSUM}
|
|
|
|
. endfor
|
|
|
|
.else # not snapshot
|
|
|
|
. if exists(${VM_DIR}/Latest)
|
|
|
|
rm -rf ${VM_DIR}/Latest
|
|
|
|
. endif
|
|
|
|
mkdir -p ${VM_DIR}/Latest
|
|
|
|
. for VMFORMAT in ${VMFORMATS}
|
2024-05-01 19:56:51 +02:00
|
|
|
. for FS in ${VMFSLIST}
|
|
|
|
cp -p ${RELEASEDIR}/vmimages/${OSRELEASE}-${FS}.${VMFORMAT}.xz \
|
|
|
|
${VM_DIR}/Latest/${OSRELEASE}-${FS}.${VMFORMAT}.xz
|
|
|
|
. endfor
|
2015-05-22 23:38:11 +02:00
|
|
|
. endfor
|
2024-06-21 02:38:46 +02:00
|
|
|
. if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE)
|
|
|
|
. for CW in ${CLOUDWARE}
|
|
|
|
. if ${CW} == BASIC-CLOUDINIT
|
|
|
|
. for VMFORMAT in ${${CW}_FORMAT}
|
|
|
|
. for FS in ${${CW}_FSLIST}
|
2024-06-19 21:28:42 +02:00
|
|
|
cp -p ${RELEASEDIR}/vmimages/${OSRELEASE}-${CW}.${FS}.${VMFORMAT}.xz \
|
|
|
|
${VM_DIR}/Latest/${OSRELEASE}-${CW}.${FS}.${VMFORMAT}.xz
|
2024-06-21 02:38:46 +02:00
|
|
|
. endfor
|
2024-06-19 21:28:42 +02:00
|
|
|
. endfor
|
2024-06-21 02:38:46 +02:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. endif
|
2015-05-22 23:38:11 +02:00
|
|
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
|
|
|
cp -p ${RELEASEDIR}/vmimages/CHECKSUM.${CHECKSUM} \
|
|
|
|
${VM_DIR}/Latest/CHECKSUM.${CHECKSUM}
|
|
|
|
. endfor
|
|
|
|
.endif
|
2015-05-12 00:14:03 +02:00
|
|
|
|
2024-06-19 21:28:42 +02:00
|
|
|
ci-images-stage:
|
|
|
|
mkdir -p ${CI_DIR}
|
|
|
|
.if defined(SNAPSHOT) && !empty(SNAPSHOT)
|
|
|
|
. if exists(${CI_DIR}/Latest)
|
|
|
|
rm -rf ${CI_DIR}/Latest
|
|
|
|
. endif
|
|
|
|
mkdir -p ${CI_DIR}/Latest
|
|
|
|
mkdir -p ${CI_DIR}/${BUILDDATE}
|
|
|
|
. for CW in ${CLOUDWARE}
|
|
|
|
. if ${CW} == BASIC-CI
|
|
|
|
. for VMFORMAT in ${${CW}_FORMAT}
|
|
|
|
. for FS in ${${CW}_FSLIST}
|
|
|
|
cd ${RELEASEDIR}/ciimages && \
|
|
|
|
mv ${OSRELEASE}-${CW}-${FS}.${VMFORMAT}.xz \
|
|
|
|
${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz
|
|
|
|
cp -p ${RELEASEDIR}/ciimages/${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz \
|
|
|
|
${CI_DIR}/${BUILDDATE}/${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz
|
|
|
|
cd ${CI_DIR}/Latest && \
|
|
|
|
ln -s ../${BUILDDATE}/${OSRELEASE}-${CW}-${SNAP_SUFFIX}.${FS}.${VMFORMAT}.xz \
|
|
|
|
${OSRELEASE}-${CW}.${FS}.${VMFORMAT}.xz
|
|
|
|
. endfor
|
|
|
|
. endfor
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
cd ${RELEASEDIR}/ciimages && rm -f CHECKSUM.*
|
|
|
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
|
|
|
cd ${RELEASEDIR}/ciimages && \
|
|
|
|
${CHECKSUM:tl} ${OSRELEASE}* > CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
|
|
|
cp -p ${RELEASEDIR}/ciimages/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
|
|
|
${CI_DIR}/${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX}
|
|
|
|
cd ${CI_DIR}/Latest && \
|
|
|
|
ln -s ../${BUILDDATE}/CHECKSUM.${CHECKSUM}-${SNAP_SUFFIX} \
|
|
|
|
CHECKSUM.${CHECKSUM}
|
|
|
|
. endfor
|
|
|
|
.else # not snapshot
|
|
|
|
. if exists(${CI_DIR}/Latest)
|
|
|
|
rm -rf ${CI_DIR}/Latest
|
|
|
|
. endif
|
|
|
|
mkdir -p ${CI_DIR}/Latest
|
|
|
|
. for CW in ${CLOUDWARE}
|
|
|
|
. if ${CW} == BASIC-CI
|
|
|
|
. for VMFORMAT in ${${CW}_FORMAT}
|
|
|
|
. for FS in ${${CW}_FSLIST}
|
|
|
|
cp -p ${RELEASEDIR}/ciimages/${OSRELEASE}-${CW}-${FS}.${VMFORMAT}.xz \
|
|
|
|
${CI_DIR}/Latest/${OSRELEASE}-${CW}.${FS}.${VMFORMAT}.xz
|
|
|
|
. endfor
|
|
|
|
. endfor
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. for CHECKSUM in ${CHECKSUM_FILES}
|
|
|
|
cp -p ${RELEASEDIR}/ciimages/CHECKSUM.${CHECKSUM} \
|
|
|
|
${CI_DIR}/Latest/CHECKSUM.${CHECKSUM}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2015-05-12 02:30:56 +02:00
|
|
|
ftp-stage: remove-old-bits ${STAGE_TARGETS}
|
2015-05-12 00:14:03 +02:00
|
|
|
|