Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: remoting/host/installer/linux/build-deb.sh

Issue 10872092: Update build-deb.sh to automatically detect version number. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/installer/linux/build-deb.sh
diff --git a/remoting/host/installer/linux/build-deb.sh b/remoting/host/installer/linux/build-deb.sh
index 520477622b757e8e67a82d880e21bb118604a9ad..3b2d04d632e8f09b9c3e3d236abe051f87ffe81f 100755
--- a/remoting/host/installer/linux/build-deb.sh
+++ b/remoting/host/installer/linux/build-deb.sh
@@ -5,8 +5,14 @@
# found in the LICENSE file.
if [[ -z "$version_full" ]]; then
- echo 'Error: $version_full not set'
- exit 1
+ 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"
+ echo "Building version $version_full"
Jamie 2012/08/27 20:21:10 Drive-by: This line should probably be outside the
Sergey Ulanov 2012/08/27 20:55:40 Done.
fi
# Create a fresh debian/changelog.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698