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:
djmm@google.com 2009-11-17 00:26:20 +00:00
parent d172735c1f
commit 72cfa11d9b

View File

@ -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"