From 72cfa11d9b4a58772891148eda99601d8f0df785 Mon Sep 17 00:00:00 2001 From: "djmm@google.com" Date: Tue, 17 Nov 2009 00:26:20 +0000 Subject: [PATCH] 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 --- archive_build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archive_build.sh b/archive_build.sh index f140685abc..aa8d23be06 100755 --- a/archive_build.sh +++ b/archive_build.sh @@ -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"