summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-23 14:33:27 -0300
committerRenato Botelho <renato@netgate.com>2016-05-23 14:34:06 -0300
commit8238d674c1e0afed05be65376f000eb8c99041e4 (patch)
treeb5145312a22c42c2b9c3d8f55bd3211fe9eba589 /build.sh
parent4daf5f563435fc59c3d550d65eaa596953c7bd0a (diff)
downloadpfsense-8238d674c1e0afed05be65376f000eb8c99041e4.zip
pfsense-8238d674c1e0afed05be65376f000eb8c99041e4.tar.gz
Introduce a new option to build only core packages and skip images
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh25
1 files changed, 16 insertions, 9 deletions
diff --git a/build.sh b/build.sh
index 3b75dc3..548ecee 100755
--- a/build.sh
+++ b/build.sh
@@ -51,8 +51,9 @@
set +e
usage() {
- echo "Usage $0 [options] [ iso | nanobsd | ova | nanobsd-vga | memstick | memstickserial | memstickadi | fullupdate | all ]"
+ echo "Usage $0 [options] [ iso | nanobsd | ova | nanobsd-vga | memstick | memstickserial | memstickadi | fullupdate | all | none ]"
echo " all = iso nanobsd nanobsd-vga memstick memstickserial memstickadi fullupdate"
+ echo " none = upgrade only pkg repo"
echo " [ options ]: "
echo " --flash-size|-f size(s) - a list of flash sizes to build with nanobsd i.e. '2g 4g'. Default: 2g"
echo " --no-buildworld|-c - Will set NO_BUILDWORLD NO_BUILDKERNEL to not build kernel and world"
@@ -137,7 +138,7 @@ while test "$1" != ""; do
;;
--snapshots)
export SNAPSHOTS=1
- IMAGETYPE="all"
+ IMAGETYPE=${1:-"all"}
;;
--poudriere-snapshots)
export POUDRIERE_SNAPSHOTS=1
@@ -195,7 +196,7 @@ while test "$1" != ""; do
--do-not-upload|-u)
export DO_NOT_UPLOAD=1
;;
- all|*iso*|*ova*|*memstick*|*memstickserial*|*memstickadi*|*nanobsd*|*nanobsd-vga*|*fullupdate*)
+ all|none|*iso*|*ova*|*memstick*|*memstickserial*|*memstickadi*|*nanobsd*|*nanobsd-vga*|*fullupdate*)
BUILDACTION="images"
IMAGETYPE="${1}"
;;
@@ -342,7 +343,9 @@ if [ -z "${IMAGETYPE}" ]; then
usage
fi
-if [ "$IMAGETYPE" = "all" ]; then
+if [ "$IMAGETYPE" = "none" ]; then
+ _IMAGESTOBUILD=""
+elif [ "$IMAGETYPE" = "all" ]; then
_IMAGESTOBUILD="iso fullupdate nanobsd nanobsd-vga memstick memstickserial"
if [ "${TARGET}" = "amd64" ]; then
_IMAGESTOBUILD="${_IMAGESTOBUILD} memstickadi"
@@ -480,11 +483,15 @@ if [ -n "${_bg_pids}" ]; then
fi
if [ -n "${SNAPSHOTS}" ]; then
- snapshots_copy_to_staging_iso_updates
- snapshots_copy_to_staging_nanobsd "${FLASH_SIZE}"
- # SCP files to snapshot web hosting area
- if [ -z "${DO_NOT_UPLOAD}" ]; then
- snapshots_scp_files
+ if [ "${IMAGETYPE}" = "none" -a -z "${DO_NOT_UPLOAD}" ]; then
+ pkg_repo_rsync "${CORE_PKG_PATH}"
+ elif [ "${IMAGETYPE}" != "none" ]; then
+ snapshots_copy_to_staging_iso_updates
+ snapshots_copy_to_staging_nanobsd "${FLASH_SIZE}"
+ # SCP files to snapshot web hosting area
+ if [ -z "${DO_NOT_UPLOAD}" ]; then
+ snapshots_scp_files
+ fi
fi
# Alert the world that we have some snapshots ready.
snapshots_update_status ">>> Builder run is complete."
OpenPOWER on IntegriCloud