summaryrefslogtreecommitdiffstats
path: root/tools/build_snapshots.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 /tools/build_snapshots.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 'tools/build_snapshots.sh')
-rwxr-xr-xtools/build_snapshots.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/build_snapshots.sh b/tools/build_snapshots.sh
index 5297d17..cd42514 100755
--- a/tools/build_snapshots.sh
+++ b/tools/build_snapshots.sh
@@ -31,8 +31,9 @@
#
usage() {
- echo "Usage: $(basename $0) [-l] [-r] [-u] [-p]"
+ echo "Usage: $(basename $0) [-l] [-n] [-r] [-u] [-p]"
echo " -l: Build looped operations"
+ echo " -n: Do not build images, only core pkg repo"
echo " -p: Update poudriere repo"
echo " -r: Do not reset local changes"
echo " -u: Do not upload snapshots"
@@ -41,14 +42,18 @@ usage() {
export BUILDER_TOOLS=$(realpath $(dirname ${0}))
export BUILDER_ROOT=$(realpath "${BUILDER_TOOLS}/..")
+NO_IMAGES=""
NO_RESET=""
NO_UPLOAD=""
LOOPED_SNAPSHOTS=""
POUDRIERE_SNAPSHOTS=""
# Handle command line arguments
-while getopts lpru opt; do
+while getopts lnpru opt; do
case ${opt} in
+ n)
+ NO_IMAGES="none"
+ ;;
l)
LOOPED_SNAPSHOTS=1
;;
@@ -186,7 +191,7 @@ while [ /bin/true ]; do
done
(${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size '2g 4g' \
- --snapshots 2>&1) | while read -r LINE; do
+ --snapshots ${NO_IMAGES} 2>&1) | while read -r LINE; do
snapshot_update_status "${LINE}"
done
fi
OpenPOWER on IntegriCloud