release.sh: document user-overriddable functions

This helps others attempting to customize the behavior of `release.sh`.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55450 (as part of a larger change)
This commit is contained in:
Enji Cooper
2026-03-21 19:45:57 -07:00
parent c25976f0a9
commit b24fc79095
+9
View File
@@ -40,8 +40,17 @@ export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
VERSION=3
# Prototypes that can be redefined per-chroot or per-target.
# load_chroot_env(): Set up the build environment needed.
#
# Done as part of chroot_env().
load_chroot_env() { }
# load_target_env(): set up the build environment needed for the
# chroot_build_target() and `${chroot_build_release}` steps.
load_target_env() { }
# buildenv_setup(): set up the build environment needed for post-chroot_setup()
buildenv_setup() { }
usage() {