diff options
author | Don Garrett <dgarrett@google.com> | 2014-05-13 17:30:55 -0700 |
---|---|---|
committer | Don Garrett <dgarrett@chromium.org> | 2014-05-26 01:32:33 +0000 |
commit | 88b8d78c5da4a385ee42ca699ba400a5306ef111 (patch) | |
tree | 7c26fbb3c16c45b4bb23878bf2b251eb0cc76f68 /cbuildbot/chromeos_version_test.sh | |
parent | 43ad52887cc1e891c760e0491d987a2f887c6ce4 (diff) | |
download | chromite-88b8d78c5da4a385ee42ca699ba400a5306ef111.tar.gz |
Rename chromite.buildbot -> chromite.cbuildbot.
The cbuildbot script lives in a directory named buildbot. Which is a
bit confusing.
BUG=chromium:373277
TEST=Unitests + cros lint.
CQ-DEPEND=CL:200157
CQ-DEPEND=CL:200165
CQ-DEPEND=CL:200149
CQ-DEPEND=CL:*163598
CQ-DEPEND=CL:*163760
CQ-DEPEND=CL:*163786
Change-Id: Ia5953a4506e8b47d27e1a6908ecb938a439da8c2
Reviewed-on: https://chromium-review.googlesource.com/199664
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Diffstat (limited to 'cbuildbot/chromeos_version_test.sh')
-rwxr-xr-x | cbuildbot/chromeos_version_test.sh | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/cbuildbot/chromeos_version_test.sh b/cbuildbot/chromeos_version_test.sh new file mode 100755 index 000000000..ebd68017a --- /dev/null +++ b/cbuildbot/chromeos_version_test.sh @@ -0,0 +1,55 @@ +#!/bin/sh + +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# ChromeOS version information +# +# This file is usually sourced by other build scripts, but can be run +# directly to see what it would do. +# +# Version numbering scheme is much like Chrome's, with the addition of +# double-incrementing branch number so trunk is always odd. + +############################################################################# +# SET VERSION NUMBERS +############################################################################# +# Major/minor versions. +# Primarily for product marketing. +export CHROMEOS_VERSION_MAJOR=0 +export CHROMEOS_VERSION_MINOR=13 + +# Branch number. +# Increment by 1 in a new release branch. +# Increment by 2 in trunk after making a release branch. +# Does not reset on a major/minor change (always increases). +# (Trunk is always odd; branches are always even). +export CHROMEOS_VERSION_BRANCH=507 + +# Patch number. +# Increment by 1 each release on a branch. +# Reset to 0 when increasing branch number. +export CHROMEOS_VERSION_PATCH=87 + +# Official builds must set CHROMEOS_OFFICIAL=1. +if [ ${CHROMEOS_OFFICIAL:-0} -ne 1 ] && [ "${USER}" != "chrome-bot" ]; then + # For developer builds, overwrite CHROMEOS_VERSION_PATCH with a date string + # for use by auto-updater. + export CHROMEOS_VERSION_PATCH=$(date +%Y_%m_%d_%H%M) +fi + +# Version string. Not indentied to appease bash. +export CHROMEOS_VERSION_STRING=\ +"${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ +".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" + +# Set CHROME values (Used for releases) to pass to chromeos-chrome-bin ebuild +# URL to chrome archive +export CHROME_BASE= +# export CHROME_VERSION from incoming value or NULL and let ebuild default +export CHROME_VERSION="$CHROME_VERSION" + +# Print (and remember) version info. +echo "ChromeOS version information:" +env | egrep '^CHROMEOS_VERSION|CHROME_' | sed 's/^/ /' |