OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 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 # Branch number. | 24 # Branch number. |
25 # Increment by 1 in a new release branch. | 25 # Increment by 1 in a new release branch. |
26 # Increment by 2 in trunk after making a release branch. | 26 # Increment by 2 in trunk after making a release branch. |
27 # Does not reset on a major/minor change (always increases). | 27 # Does not reset on a major/minor change (always increases). |
28 # (Trunk is always odd; branches are always even). | 28 # (Trunk is always odd; branches are always even). |
29 export CHROMEOS_VERSION_BRANCH=31 | 29 export CHROMEOS_VERSION_BRANCH=31 |
30 | 30 |
31 # Patch number. | 31 # Patch number. |
32 # Increment by 1 each release on a branch. | 32 # Increment by 1 each release on a branch. |
33 # Reset to 0 when increasing branch number. | 33 # Reset to 0 when increasing branch number. |
34 export CHROMEOS_VERSION_PATCH=0 | 34 export CHROMEOS_VERSION_PATCH=0 |
35 | 35 |
36 # Codename of this version. | 36 # Codename of this version. |
37 export CHROMEOS_VERSION_CODENAME="" | 37 export CHROMEOS_VERSION_CODENAME="" |
38 | |
39 | 38 |
40 ############################################################################# | 39 ############################################################################# |
41 # SET VERSION STRINGS | 40 # SET VERSION STRINGS |
42 ############################################################################# | 41 ############################################################################# |
43 # Official builds must set | 42 # Official builds must set |
44 # CHROMEOS_OFFICIAL=1 | 43 # CHROMEOS_OFFICIAL=1 |
45 # Note that ${FOO:-0} means default-to-0-if-unset; ${FOO:?} means die-if-unset. | 44 # Note that ${FOO:-0} means default-to-0-if-unset; ${FOO:?} means die-if-unset. |
46 if [ ${CHROMEOS_OFFICIAL:-0} -eq 1 ] | 45 if [ ${CHROMEOS_OFFICIAL:-0} -eq 1 ] |
47 then | 46 then |
48 # Official builds (i.e., buildbot) | 47 # Official builds (i.e., buildbot) |
49 export CHROMEOS_VERSION_NAME="Chrome OS" | 48 export CHROMEOS_VERSION_NAME="Chrome OS" |
50 export CHROMEOS_VERSION_TRACK="dev-channel" | 49 export CHROMEOS_VERSION_TRACK="dev-channel" |
51 export CHROMEOS_VERSION_AUSERVER="https://tools.google.com/service/update2" | 50 export CHROMEOS_VERSION_AUSERVER="https://tools.google.com/service/update2" |
52 export CHROMEOS_VERSION_DEVSERVER="" | 51 export CHROMEOS_VERSION_DEVSERVER="" |
53 elif [ "$USER" = "chrome-bot" ] | 52 elif [ "$USER" = "chrome-bot" ] |
54 then | 53 then |
(...skipping 20 matching lines...) Expand all Loading... |
75 export CHROMEOS_VERSION_DEVSERVER="http://$HOSTNAME:8080" | 74 export CHROMEOS_VERSION_DEVSERVER="http://$HOSTNAME:8080" |
76 # Overwrite CHROMEOS_VERSION_PATCH with a date string for use by auto-updater | 75 # Overwrite CHROMEOS_VERSION_PATCH with a date string for use by auto-updater |
77 export CHROMEOS_VERSION_PATCH=$(date +%Y%m%d%H%M) | 76 export CHROMEOS_VERSION_PATCH=$(date +%Y%m%d%H%M) |
78 fi | 77 fi |
79 | 78 |
80 # Version string. Not indentied to appease bash. | 79 # Version string. Not indentied to appease bash. |
81 export CHROMEOS_VERSION_STRING=\ | 80 export CHROMEOS_VERSION_STRING=\ |
82 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ | 81 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ |
83 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" | 82 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" |
84 | 83 |
| 84 # Set CHROME values (Used for releases) to pass to chromeos-chrome-bin ebuild |
| 85 # URL to chrome archive |
| 86 export CHROME_BASE= |
| 87 # directory containing chrome-chromeos.zip - an svn rev or a full version |
| 88 export CHROME_BUILD= |
| 89 |
85 # Print version info. | 90 # Print version info. |
86 echo "ChromeOS version information:" | 91 echo "ChromeOS version information:" |
87 env | egrep "^CHROMEOS_VERSION" | sed 's/^/ /' | 92 env | egrep '^CHROMEOS_VERSION|CHROME_' | sed 's/^/ /' |
OLD | NEW |