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 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 fi | |
16 | |
17 if !(echo $version_full | grep -E \ | |
Lambros
2012/08/27 21:39:33
Optional: maybe move this check into the first if.
Sergey Ulanov
2012/08/28 00:41:07
It's intentionally outside of the previous if to m
| |
18 "^[[:digit:]]+.[[:digit:]]+.[[:digit:]]+.[[:digit:]]+$" > /dev/null); then | |
Jamie
2012/08/27 21:03:31
Strictly speaking, you should escape the . charact
| |
19 echo "Error: Invalid \$version_full value: $version_full" >&2 | |
9 exit 1 | 20 exit 1 |
10 fi | 21 fi |
11 | 22 |
23 echo "Building version $version_full" | |
24 | |
12 # Create a fresh debian/changelog. | 25 # Create a fresh debian/changelog. |
13 export DEBEMAIL="The Chromium Authors <chromium-dev@chromium.org>" | 26 export DEBEMAIL="The Chromium Authors <chromium-dev@chromium.org>" |
14 rm -f debian/changelog | 27 rm -f debian/changelog |
15 debchange --create \ | 28 debchange --create \ |
16 --package chrome-remote-desktop \ | 29 --package chrome-remote-desktop \ |
17 --distribution lucid \ | 30 --distribution lucid \ |
18 --newversion "$version_full" \ | 31 --newversion "$version_full" \ |
19 "New Debian package" | 32 "New Debian package" |
20 | 33 |
21 dpkg-buildpackage -b -us -uc | 34 dpkg-buildpackage -b -us -uc |
OLD | NEW |