diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-27 20:59:25 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-27 20:59:25 +0000 |
commit | 406d01a58a3712559db51646d0c9da5c56d86355 (patch) | |
tree | 9c42d41a7d3032b539112a6d388c9da82a626fd4 /remoting | |
parent | 0ccbfabdb91c753a650bbfa10c977a5896d1c371 (diff) | |
download | chromium_src-406d01a58a3712559db51646d0c9da5c56d86355.zip chromium_src-406d01a58a3712559db51646d0c9da5c56d86355.tar.gz chromium_src-406d01a58a3712559db51646d0c9da5c56d86355.tar.bz2 |
Update build-deb.sh to automatically detect version number.
Review URL: https://chromiumcodereview.appspot.com/10872092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rwxr-xr-x | remoting/host/installer/linux/build-deb.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/remoting/host/installer/linux/build-deb.sh b/remoting/host/installer/linux/build-deb.sh index 5204776..14231cb 100755 --- a/remoting/host/installer/linux/build-deb.sh +++ b/remoting/host/installer/linux/build-deb.sh @@ -5,10 +5,23 @@ # found in the LICENSE file. if [[ -z "$version_full" ]]; then - echo 'Error: $version_full not set' + src_root=./../../../.. + version_helper=$src_root/chrome/tools/build/version.py + version_base=$($version_helper -f $src_root/remoting/VERSION \ + -t "@MAJOR@.@MINOR@") + version_build=$($version_helper -f $src_root/chrome/VERSION \ + -t "@BUILD@.@PATCH@") + version_full="$version_base.$version_build" +fi + +if !(echo $version_full | grep -E \ + "^[[:digit:]]+.[[:digit:]]+.[[:digit:]]+.[[:digit:]]+$" > /dev/null); then + echo "Error: Invalid \$version_full value: $version_full" >&2 exit 1 fi +echo "Building version $version_full" + # Create a fresh debian/changelog. export DEBEMAIL="The Chromium Authors <chromium-dev@chromium.org>" rm -f debian/changelog |