2023-09-01 22:14:12 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
function main {
|
2023-09-01 22:51:23 +00:00
|
|
|
build_release_script
|
2023-09-01 22:14:12 +00:00
|
|
|
}
|
|
|
|
|
2023-09-01 22:51:23 +00:00
|
|
|
function build_release_script {
|
2023-09-01 22:14:12 +00:00
|
|
|
/usr/src/release/release.sh -c /opt/freebsd_update_server/release.conf
|
|
|
|
}
|
|
|
|
|
2023-09-01 22:51:23 +00:00
|
|
|
function build_release_manually {
|
|
|
|
make -C /usr/src buildworld buildkernel
|
|
|
|
make -C /usr/src/release obj
|
|
|
|
make -C /usr/src/release release
|
|
|
|
make -C /usr/src/release install DESTDIR=/where/to/put/the/images
|
|
|
|
}
|
|
|
|
|
2023-09-01 22:14:12 +00:00
|
|
|
main "${@}"
|