3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 # ChromeOS version information
9 # This file is usually sourced by other build scripts, but can be run
10 # directly to see what it would do.
12 # Version numbering scheme is much like Chrome's, with the addition of
13 # double-incrementing branch number so trunk is always odd.
15 #############################################################################
17 #############################################################################
18 # Major/minor versions.
19 # Primarily for product marketing.
20 export CHROMEOS_VERSION_MAJOR=0
21 export CHROMEOS_VERSION_MINOR=13
24 # Increment by 1 in a new release branch.
25 # Increment by 2 in trunk after making a release branch.
26 # Does not reset on a major/minor change (always increases).
27 # (Trunk is always odd; branches are always even).
28 export CHROMEOS_VERSION_BRANCH=507
31 # Increment by 1 each release on a branch.
32 # Reset to 0 when increasing branch number.
33 export CHROMEOS_VERSION_PATCH=87
35 # Official builds must set CHROMEOS_OFFICIAL=1.
36 if [ ${CHROMEOS_OFFICIAL:-0} -ne 1 ] && [ "${USER}" != "chrome-bot" ]; then
37 # For developer builds, overwrite CHROMEOS_VERSION_PATCH with a date string
38 # for use by auto-updater.
39 export CHROMEOS_VERSION_PATCH=$(date +%Y_%m_%d_%H%M)
42 # Version string. Not indentied to appease bash.
43 export CHROMEOS_VERSION_STRING=\
44 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\
45 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}"
47 # Set CHROME values (Used for releases) to pass to chromeos-chrome-bin ebuild
48 # URL to chrome archive
50 # export CHROME_VERSION from incoming value or NULL and let ebuild default
51 export CHROME_VERSION="$CHROME_VERSION"
53 # Print (and remember) version info.
54 echo "ChromeOS version information:"
55 env | egrep '^CHROMEOS_VERSION|CHROME_' | sed 's/^/ /'