Fixes the function syntax so that chromeos version executes correctly in the chroot.

Review URL: http://chromereview.prom.corp.google.com/1179022

git-svn-id: svn://chrome-svn/chromeos/trunk@143 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
rtc@google.com 2009-11-02 22:10:33 +00:00
parent e448ba3021
commit e69130c23a

View File

@ -13,7 +13,7 @@
# double-incrementing branch number so trunk is always odd. # double-incrementing branch number so trunk is always odd.
# Sets up a version number for release builds. # Sets up a version number for release builds.
function export_release_version { export_release_version() {
# Major/minor versions. # Major/minor versions.
# Primarily for product marketing. # Primarily for product marketing.
export CHROMEOS_VERSION_MAJOR=0 export CHROMEOS_VERSION_MAJOR=0
@ -33,11 +33,10 @@ function export_release_version {
# Codename of this version. # Codename of this version.
export CHROMEOS_VERSION_CODENAME="Indy" export CHROMEOS_VERSION_CODENAME="Indy"
} }
# Sets up a version for developer builds. # Sets up a version for developer builds.
function export_developer_version { export_developer_version() {
# Use an arbitrarily high number to indicate that this is a dev build. # Use an arbitrarily high number to indicate that this is a dev build.
export CHROMEOS_VERSION_MAJOR=999 export CHROMEOS_VERSION_MAJOR=999
@ -54,9 +53,9 @@ function export_developer_version {
# will help us figure out who did the build if a different # will help us figure out who did the build if a different
# person is debugging the system. # person is debugging the system.
export CHROMEOS_VERSION_CODENAME="$USER" export CHROMEOS_VERSION_CODENAME="$USER"
} }
function export_version_string {
export_version_string() {
# Version string. Not indentied to appease bash. # Version string. Not indentied to appease bash.
export CHROMEOS_VERSION_STRING=\ export CHROMEOS_VERSION_STRING=\
"${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\ "${CHROMEOS_VERSION_MAJOR}.${CHROMEOS_VERSION_MINOR}"\
@ -90,8 +89,6 @@ else
export CHROMEOS_VERSION_DEVSERVER="http://$HOSTNAME:8080/static/devkit" export CHROMEOS_VERSION_DEVSERVER="http://$HOSTNAME:8080/static/devkit"
fi fi
# Print version info. # Print version info.
echo "ChromeOS version information:" echo "ChromeOS version information:"
set | grep "CHROMEOS_VERSION" | sed 's/^/ /' set | grep "CHROMEOS_VERSION" | sed 's/^/ /'