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 SCRIPTDIR="$(dirname "$(readlink -f "$0")")" | 7 SCRIPTDIR="$(dirname "$(readlink -f "$0")")" |
8 PACKAGE="chrome-remote-desktop" | 8 PACKAGE="chrome-remote-desktop" |
9 ARCHITECTURE=$(dpkg-architecture | awk -F '=' '/DEB_BUILD_ARCH=/{print $2}') | 9 ARCHITECTURE=$(dpkg-architecture | awk -F '=' '/DEB_BUILD_ARCH=/{print $2}') |
10 REPOCONFIG="deb http://dl.google.com/linux/chrome-remote-desktop/deb/ stable mai
n" | 10 REPOCONFIG="deb http://dl.google.com/linux/chrome-remote-desktop/deb/ stable mai
n" |
11 | 11 |
12 source ${SCRIPTDIR}/../../../../chrome/installer/linux/common/installer.include | 12 source ${SCRIPTDIR}/../../../../chrome/installer/linux/common/installer.include |
13 | 13 |
14 guess_filename() { | 14 guess_filename() { |
15 VERSION_FULL=$(get_version_full) | 15 VERSION_FULL=$(get_version_full) |
16 echo ${PACKAGE}_${VERSION_FULL}_${ARCHITECTURE}.deb | 16 echo ${PACKAGE}_${VERSION_FULL}_${ARCHITECTURE}.deb |
17 } | 17 } |
18 | 18 |
19 get_version_full() { | 19 get_version_full() { |
20 src_root=${src_root:-./../../../..} | 20 src_root=${src_root:-./../../../..} |
21 remoting_version_path=$src_root/remoting/VERSION | 21 remoting_version_path=$src_root/remoting/VERSION |
22 chrome_version_path=$src_root/chrome/VERSION | 22 chrome_version_path=$src_root/chrome/VERSION |
23 version_helper=$src_root/chrome/tools/build/version.py | 23 version_helper=$src_root/build/util/version.py |
24 | 24 |
25 # TODO(lambroslambrou): Refactor to share the logic with remoting.gyp. | 25 # TODO(lambroslambrou): Refactor to share the logic with remoting.gyp. |
26 version_major=$($version_helper -f $chrome_version_path \ | 26 version_major=$($version_helper -f $chrome_version_path \ |
27 -f $remoting_version_path -t "@MAJOR@") | 27 -f $remoting_version_path -t "@MAJOR@") |
28 version_minor=$($version_helper -f $remoting_version_path \ | 28 version_minor=$($version_helper -f $remoting_version_path \ |
29 -t "@REMOTING_PATCH@") | 29 -t "@REMOTING_PATCH@") |
30 version_build=$($version_helper -f $chrome_version_path \ | 30 version_build=$($version_helper -f $chrome_version_path \ |
31 -f $remoting_version_path -t "@BUILD@") | 31 -f $remoting_version_path -t "@BUILD@") |
32 version_patch=$($version_helper -f $chrome_version_path \ | 32 version_patch=$($version_helper -f $chrome_version_path \ |
33 -f $remoting_version_path -t "@PATCH@") | 33 -f $remoting_version_path -t "@PATCH@") |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 # but it seems that we don't currently, so this is the most expediant fix. | 134 # but it seems that we don't currently, so this is the most expediant fix. |
135 SAVE_LDLP=$LD_LIBRARY_PATH | 135 SAVE_LDLP=$LD_LIBRARY_PATH |
136 unset LD_LIBRARY_PATH | 136 unset LD_LIBRARY_PATH |
137 dpkg-buildpackage -b -us -uc | 137 dpkg-buildpackage -b -us -uc |
138 LD_LIBRARY_PATH=$SAVE_LDLP | 138 LD_LIBRARY_PATH=$SAVE_LDLP |
139 | 139 |
140 if [[ "$OUTPUT_PATH" ]]; then | 140 if [[ "$OUTPUT_PATH" ]]; then |
141 mv ../${PACKAGE}_*.deb "$OUTPUT_PATH"/ | 141 mv ../${PACKAGE}_*.deb "$OUTPUT_PATH"/ |
142 mv ../${PACKAGE}_*.changes "$OUTPUT_PATH"/ | 142 mv ../${PACKAGE}_*.changes "$OUTPUT_PATH"/ |
143 fi | 143 fi |
OLD | NEW |