Unverified Commit 69af3333 authored by Yarema's avatar Yarema Committed by Shawn Webb
Browse files

Support BUILD-LATEST symlink and sync

(cherry picked from commit 0ef61c81

)
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 79f7330b
......@@ -25,22 +25,18 @@
# SUCH DAMAGE.
publish_release() {
local res
mv ${HBSD_STAGEDIR} ${HBSD_PUBDIR}/${HBSD_BUILDNUMBER}
res=${?}
[ ${res} -gt 0 ] && return ${res}
ln -sf ${HBSD_BUILDNUMBER} ${HBSD_PUBDIR}/BUILD-LATEST
return ${?}
}
kick_publisher_tires() {
local res
[ -z "${HBSD_MIRROR_MASTER}" ] && return 0
rsync -a ${HBSD_PUBDIR}/${HBSD_BUILDNUMBER}/ \
${HBSD_MIRROR_MASTER}:${HBSD_MIRROR_PUBDIR}/build-${HBSD_BUILDNUMBER}
res=${?}
if [ ${res} -gt 0 ]; then
return ${res}
fi
rsync -a ${HBSD_PUBDIR}/ ${HBSD_MIRROR_MASTER}:${HBSD_MIRROR_PUBDIR}/
return ${?}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment