Use --official_build boolean.

Review URL: http://codereview.chromium.org/2843051
This commit is contained in:
David McMahon 2010-07-07 12:48:36 -07:00
parent 1e53c94ac9
commit edf039490e

View File

@ -24,6 +24,7 @@ get_default_board
DEFINE_string board "$DEFAULT_BOARD" "The board to build packages for."
DEFINE_boolean dryrun ${FLAGS_FALSE} "Run without actually uploading."
DEFINE_boolean verbose ${FLAGS_FALSE} "Be verbose."
DEFINE_boolean official_build $FLAGS_FALSE "Point to official symbol server."
DEFINE_boolean yes ${FLAGS_FALSE} "Answer yes to all prompts."
DUMP_SYMS="dump_syms.i386"
@ -39,14 +40,6 @@ function cleanup() {
rm -f "${SYM_FILE}" "${ERR_FILE}"
}
function is_official() {
if [ ${CHROMEOS_OFFICIAL:-0} = 1 ]; then
return 0
else
return 1
fi
}
# Given path to a debug file, return its text file
function get_text_for_debug {
local debug_file=$1
@ -193,7 +186,7 @@ function main() {
local upload_url=""
if [ ${FLAGS_dryrun} -eq ${FLAGS_FALSE} ]; then
if is_official; then
if [ $FLAGS_official_build -eq $FLAGS_TRUE ]; then
upload_url="http://clients2.google.com/cr/symbol"
else
upload_url="http://clients2.google.com/cr/staging_symbol"