Skip to content

Commit b24fc79

Browse files
committed
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)
1 parent c25976f commit b24fc79

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

release/release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,17 @@ export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
4040
VERSION=3
4141

4242
# Prototypes that can be redefined per-chroot or per-target.
43+
44+
# load_chroot_env(): Set up the build environment needed.
45+
#
46+
# Done as part of chroot_env().
4347
load_chroot_env() { }
48+
49+
# load_target_env(): set up the build environment needed for the
50+
# chroot_build_target() and `${chroot_build_release}` steps.
4451
load_target_env() { }
52+
53+
# buildenv_setup(): set up the build environment needed for post-chroot_setup()
4554
buildenv_setup() { }
4655

4756
usage() {

0 commit comments

Comments
 (0)