Project

General

Profile

« Previous | Next » 

Revision 8238d674

Added by Renato Botelho about 9 years ago

Introduce a new option to build only core packages and skip images

View differences:

tools/build_snapshots.sh
31 31
#
32 32

  
33 33
usage() {
34
	echo "Usage: $(basename $0) [-l] [-r] [-u] [-p]"
34
	echo "Usage: $(basename $0) [-l] [-n] [-r] [-u] [-p]"
35 35
	echo "	-l: Build looped operations"
36
	echo "	-n: Do not build images, only core pkg repo"
36 37
	echo "	-p: Update poudriere repo"
37 38
	echo "	-r: Do not reset local changes"
38 39
	echo "	-u: Do not upload snapshots"
......
41 42
export BUILDER_TOOLS=$(realpath $(dirname ${0}))
42 43
export BUILDER_ROOT=$(realpath "${BUILDER_TOOLS}/..")
43 44

  
45
NO_IMAGES=""
44 46
NO_RESET=""
45 47
NO_UPLOAD=""
46 48
LOOPED_SNAPSHOTS=""
47 49
POUDRIERE_SNAPSHOTS=""
48 50

  
49 51
# Handle command line arguments
50
while getopts lpru opt; do
52
while getopts lnpru opt; do
51 53
	case ${opt} in
54
		n)
55
			NO_IMAGES="none"
56
			;;
52 57
		l)
53 58
			LOOPED_SNAPSHOTS=1
54 59
			;;
......
186 191
		done
187 192

  
188 193
		(${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size '2g 4g' \
189
		    --snapshots 2>&1) | while read -r LINE; do
194
		    --snapshots ${NO_IMAGES} 2>&1) | while read -r LINE; do
190 195
			snapshot_update_status "${LINE}"
191 196
		done
192 197
	fi

Also available in: Unified diff