OLD | NEW |
---|---|
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium 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 if [[ -z "$version_full" ]]; then | 7 if [[ -z "$version_full" ]]; then |
8 echo 'Error: $version_full not set' | 8 src_root=./../../../.. |
9 exit 1 | 9 version_helper=$src_root/chrome/tools/build/version.py |
10 version_base=$($version_helper -f $src_root/remoting/VERSION \ | |
11 -t "@MAJOR@.@MINOR@") | |
12 version_build=$($version_helper -f $src_root/chrome/VERSION \ | |
13 -t "@BUILD@.@PATCH@") | |
14 version_full="$version_base.$version_build" | |
15 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.
| |
10 fi | 16 fi |
11 | 17 |
12 # Create a fresh debian/changelog. | 18 # Create a fresh debian/changelog. |
13 export DEBEMAIL="The Chromium Authors <chromium-dev@chromium.org>" | 19 export DEBEMAIL="The Chromium Authors <chromium-dev@chromium.org>" |
14 rm -f debian/changelog | 20 rm -f debian/changelog |
15 debchange --create \ | 21 debchange --create \ |
16 --package chrome-remote-desktop \ | 22 --package chrome-remote-desktop \ |
17 --distribution lucid \ | 23 --distribution lucid \ |
18 --newversion "$version_full" \ | 24 --newversion "$version_full" \ |
19 "New Debian package" | 25 "New Debian package" |
20 | 26 |
21 dpkg-buildpackage -b -us -uc | 27 dpkg-buildpackage -b -us -uc |
OLD | NEW |