mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
Use --official_build boolean.
Review URL: http://codereview.chromium.org/2843051
This commit is contained in:
parent
1e53c94ac9
commit
edf039490e
@ -24,6 +24,7 @@ get_default_board
|
|||||||
DEFINE_string board "$DEFAULT_BOARD" "The board to build packages for."
|
DEFINE_string board "$DEFAULT_BOARD" "The board to build packages for."
|
||||||
DEFINE_boolean dryrun ${FLAGS_FALSE} "Run without actually uploading."
|
DEFINE_boolean dryrun ${FLAGS_FALSE} "Run without actually uploading."
|
||||||
DEFINE_boolean verbose ${FLAGS_FALSE} "Be verbose."
|
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."
|
DEFINE_boolean yes ${FLAGS_FALSE} "Answer yes to all prompts."
|
||||||
|
|
||||||
DUMP_SYMS="dump_syms.i386"
|
DUMP_SYMS="dump_syms.i386"
|
||||||
@ -39,14 +40,6 @@ function cleanup() {
|
|||||||
rm -f "${SYM_FILE}" "${ERR_FILE}"
|
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
|
# Given path to a debug file, return its text file
|
||||||
function get_text_for_debug {
|
function get_text_for_debug {
|
||||||
local debug_file=$1
|
local debug_file=$1
|
||||||
@ -193,7 +186,7 @@ function main() {
|
|||||||
|
|
||||||
local upload_url=""
|
local upload_url=""
|
||||||
if [ ${FLAGS_dryrun} -eq ${FLAGS_FALSE} ]; then
|
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"
|
upload_url="http://clients2.google.com/cr/symbol"
|
||||||
else
|
else
|
||||||
upload_url="http://clients2.google.com/cr/staging_symbol"
|
upload_url="http://clients2.google.com/cr/staging_symbol"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user