OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # ChromeOS version information | 7 # ChromeOS version information |
8 # | 8 # |
9 # This file is usually sourced by other build scripts, but can be run | 9 # This file is usually sourced by other build scripts, but can be run |
10 # directly to see what it would do. | 10 # directly to see what it would do. |
11 # | 11 # |
12 # Version numbering scheme is much like Chrome's, with the addition of | 12 # Version numbering scheme is much like Chrome's, with the addition of |
13 # double-incrementing branch number so trunk is always odd. | 13 # double-incrementing branch number so trunk is always odd. |
14 | 14 |
15 HOSTNAME=$(hostname) | 15 HOSTNAME=$(hostname) |
16 ############################################################################# | 16 ############################################################################# |
17 # SET VERSION NUMBERS | 17 # SET VERSION NUMBERS |
18 ############################################################################# | 18 ############################################################################# |
19 # Major/minor versions. | 19 # Major/minor versions. |
20 # Primarily for product marketing. | 20 # Primarily for product marketing. |
21 export CHROMEOS_VERSION_MAJOR=0 | 21 export CHROMEOS_VERSION_MAJOR=0 |
22 export CHROMEOS_VERSION_MINOR=5 | 22 export CHROMEOS_VERSION_MINOR=5 |
23 | 23 |
24 # Major/minor versions. | |
25 # Primarily for product marketing. | |
26 export CHROMEOS_VERSION_MAJOR=0 | |
27 export CHROMEOS_VERSION_MINOR=5 | |
28 | |
29 # Branch number. | 24 # Branch number. |
30 # Increment by 1 in a new release branch. | 25 # Increment by 1 in a new release branch. |
31 # Increment by 2 in trunk after making a release branch. | 26 # Increment by 2 in trunk after making a release branch. |
32 # Does not reset on a major/minor change (always increases). | 27 # Does not reset on a major/minor change (always increases). |
33 # (Trunk is always odd; branches are always even). | 28 # (Trunk is always odd; branches are always even). |
34 export CHROMEOS_VERSION_BRANCH=25 | 29 export CHROMEOS_VERSION_BRANCH=25 |
35 | 30 |
36 # Patch number. | 31 # Patch number. |
37 # Increment by 1 each release on a branch. | 32 # Increment by 1 each release on a branch. |
38 # Reset to 0 when increasing branch number. | 33 # Reset to 0 when increasing branch number. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 fi | 76 fi |
82 | 77 |
83 # Version string. Not indentied to appease bash. | 78 # Version string. Not indentied to appease bash. |
84 export CHROMEOS_VERSION_STRING=\ | 79 export CHROMEOS_VERSION_STRING=\ |
85 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ | 80 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ |
86 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" | 81 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" |
87 | 82 |
88 # Print version info. | 83 # Print version info. |
89 echo "ChromeOS version information:" | 84 echo "ChromeOS version information:" |
90 env | egrep "^CHROMEOS_VERSION" | sed 's/^/ /' | 85 env | egrep "^CHROMEOS_VERSION" | sed 's/^/ /' |
OLD | NEW |