Revision 288bd310
Added by Renato Botelho about 9 years ago
build.sh | ||
---|---|---|
51 | 51 |
|
52 | 52 |
set +e |
53 | 53 |
usage() { |
54 |
echo "Usage $0 [options] [ iso | nanobsd | ova | nanobsd-vga | memstick | memstickserial | memstickadi | fullupdate | all ]" |
|
54 |
echo "Usage $0 [options] [ iso | nanobsd | ova | nanobsd-vga | memstick | memstickserial | memstickadi | fullupdate | all | none ]"
|
|
55 | 55 |
echo " all = iso nanobsd nanobsd-vga memstick memstickserial memstickadi fullupdate" |
56 |
echo " none = upgrade only pkg repo" |
|
56 | 57 |
echo " [ options ]: " |
57 | 58 |
echo " --flash-size|-f size(s) - a list of flash sizes to build with nanobsd i.e. '2g 4g'. Default: 2g" |
58 | 59 |
echo " --no-buildworld|-c - Will set NO_BUILDWORLD NO_BUILDKERNEL to not build kernel and world" |
... | ... | |
137 | 138 |
;; |
138 | 139 |
--snapshots) |
139 | 140 |
export SNAPSHOTS=1 |
140 |
IMAGETYPE="all"
|
|
141 |
IMAGETYPE=${1:-"all"}
|
|
141 | 142 |
;; |
142 | 143 |
--poudriere-snapshots) |
143 | 144 |
export POUDRIERE_SNAPSHOTS=1 |
... | ... | |
195 | 196 |
--do-not-upload|-u) |
196 | 197 |
export DO_NOT_UPLOAD=1 |
197 | 198 |
;; |
198 |
all|*iso*|*ova*|*memstick*|*memstickserial*|*memstickadi*|*nanobsd*|*nanobsd-vga*|*fullupdate*) |
|
199 |
all|none|*iso*|*ova*|*memstick*|*memstickserial*|*memstickadi*|*nanobsd*|*nanobsd-vga*|*fullupdate*)
|
|
199 | 200 |
BUILDACTION="images" |
200 | 201 |
IMAGETYPE="${1}" |
201 | 202 |
;; |
... | ... | |
342 | 343 |
usage |
343 | 344 |
fi |
344 | 345 |
|
345 |
if [ "$IMAGETYPE" = "all" ]; then |
|
346 |
if [ "$IMAGETYPE" = "none" ]; then |
|
347 |
_IMAGESTOBUILD="" |
|
348 |
elif [ "$IMAGETYPE" = "all" ]; then |
|
346 | 349 |
_IMAGESTOBUILD="iso fullupdate nanobsd nanobsd-vga memstick memstickserial" |
347 | 350 |
if [ "${TARGET}" = "amd64" ]; then |
348 | 351 |
_IMAGESTOBUILD="${_IMAGESTOBUILD} memstickadi" |
... | ... | |
476 | 479 |
fi |
477 | 480 |
|
478 | 481 |
if [ -n "${SNAPSHOTS}" ]; then |
479 |
snapshots_copy_to_staging_iso_updates |
|
480 |
snapshots_copy_to_staging_nanobsd "${FLASH_SIZE}" |
|
481 |
# SCP files to snapshot web hosting area |
|
482 |
if [ -z "${DO_NOT_UPLOAD}" ]; then |
|
483 |
snapshots_scp_files |
|
482 |
if [ "${IMAGETYPE}" = "none" -a -z "${DO_NOT_UPLOAD}" ]; then |
|
483 |
pkg_repo_rsync "${CORE_PKG_PATH}" |
|
484 |
elif [ "${IMAGETYPE}" != "none" ]; then |
|
485 |
snapshots_copy_to_staging_iso_updates |
|
486 |
snapshots_copy_to_staging_nanobsd "${FLASH_SIZE}" |
|
487 |
# SCP files to snapshot web hosting area |
|
488 |
if [ -z "${DO_NOT_UPLOAD}" ]; then |
|
489 |
snapshots_scp_files |
|
490 |
fi |
|
484 | 491 |
fi |
485 | 492 |
# Alert the world that we have some snapshots ready. |
486 | 493 |
snapshots_update_status ">>> Builder run is complete." |
Also available in: Unified diff
Introduce a new option to build only core packages and skip images