mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 18:31:54 +01:00
Add an --official_build option to set CHROMEOS_OFFICIAL=1 (used by buildbot).
Review URL: http://chromereview.prom.corp.google.com/1188062 git-svn-id: svn://chrome-svn/chromeos/trunk@258 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
parent
d172735c1f
commit
72cfa11d9b
@ -24,6 +24,7 @@ DEFINE_string from "$DEFAULT_FROM" \
|
||||
DEFINE_string to "$DEFAULT_TO" "Directory of build archive"
|
||||
DEFINE_integer keep_max 0 "Maximum builds to keep in archive (0=all)"
|
||||
DEFINE_string zipname "image.zip" "Name of zip file to create."
|
||||
DEFINE_boolean official_build $FLAGS_FALSE "Set CHROMEOS_OFFICIAL=1 for release builds."
|
||||
|
||||
# Parse command line
|
||||
FLAGS "$@" || exit 1
|
||||
@ -32,6 +33,11 @@ eval set -- "${FLAGS_ARGV}"
|
||||
# Die on any errors.
|
||||
set -e
|
||||
|
||||
if [ $FLAGS_official_build -eq $FLAGS_TRUE ]
|
||||
then
|
||||
CHROMEOS_OFFICIAL=1
|
||||
fi
|
||||
|
||||
# Get version information
|
||||
. "${SCRIPTS_DIR}/chromeos_version.sh"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user