]> git.wh0rd.org - home.git/commitdiff
cros-board: disable factory building by default
authorMike Frysinger <vapier@gentoo.org>
Wed, 24 Apr 2013 18:18:07 +0000 (14:18 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 24 Apr 2013 18:18:07 +0000 (14:18 -0400)
.bin/cros-board

index 93f1bd65b65cf7133e012b20b9c55061eda6fd70..6b75d74870ba7424733d0a742512674c4241b19e 100755 (executable)
@@ -18,6 +18,7 @@ ARG_DEV_USER=false
 ARG_PRETEND=false
 ARG_NOPKG=false
 ARG_AUTOTEST=false
+ARG_FACTORY=false
 ARG_VERBOSE=false
 ARG_TEST=false
 while [[ $# -ne 0 ]] ; do
@@ -30,6 +31,7 @@ while [[ $# -ne 0 ]] ; do
        -t) ARG_TEST=true;;
        --nousepkg) ARG_NOPKG=true;;
        --autotest) ARG_AUTOTEST=true;;
+       --factory) ARG_FACTORY=true;;
        -h) exec sed -n '/^while/,/^done/p' "$0";;
        *) echo "unknown opt: $*"; exit 1;;
        esac
@@ -78,6 +80,7 @@ run ./build_packages \
        --nowithdebug \
        --skip_chroot_upgrade \
        $(tfe ${ARG_AUTOTEST} --{,no}withautotest) \
+       $(tfe ${ARG_FACTORY} --{,no}withfactory) \
        $(tfe ${ARG_NOPKG} --{no,}usepkg) \
        $(tfe ${ARG_TEST} --{,no}withtest)
 BUILD_IMG="./build_image --board=${BOARD} --noenable_rootfs_verification $(tfe ${ARG_TEST} test) dev"