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. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 # Developer hand-builds | 66 # Developer hand-builds |
67 # Sets the codename to the user who built the image. This | 67 # Sets the codename to the user who built the image. This |
68 # will help us figure out who did the build if a different | 68 # will help us figure out who did the build if a different |
69 # person is debugging the system. | 69 # person is debugging the system. |
70 export CHROMEOS_VERSION_CODENAME="$USER" | 70 export CHROMEOS_VERSION_CODENAME="$USER" |
71 | 71 |
72 export CHROMEOS_VERSION_NAME="Chromium OS" | 72 export CHROMEOS_VERSION_NAME="Chromium OS" |
73 export CHROMEOS_VERSION_TRACK="developer-build" | 73 export CHROMEOS_VERSION_TRACK="developer-build" |
74 export CHROMEOS_VERSION_AUSERVER="http://$HOSTNAME:8080/update" | 74 export CHROMEOS_VERSION_AUSERVER="http://$HOSTNAME:8080/update" |
75 export CHROMEOS_VERSION_DEVSERVER="http://$HOSTNAME:8080" | 75 export CHROMEOS_VERSION_DEVSERVER="http://$HOSTNAME:8080" |
| 76 # 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 fi | 78 fi |
77 | 79 |
78 # Version string. Not indentied to appease bash. | 80 # Version string. Not indentied to appease bash. |
79 export CHROMEOS_VERSION_STRING=\ | 81 export CHROMEOS_VERSION_STRING=\ |
80 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ | 82 "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ |
81 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" | 83 ".${CHROMEOS_VERSION_BRANCH}.${CHROMEOS_VERSION_PATCH}" |
82 | 84 |
83 # Print version info. | 85 # Print version info. |
84 echo "ChromeOS version information:" | 86 echo "ChromeOS version information:" |
85 env | egrep "^CHROMEOS_VERSION" | sed 's/^/ /' | 87 env | egrep "^CHROMEOS_VERSION" | sed 's/^/ /' |
OLD | NEW |