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

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

Issue 165893002: Moving version script and gypi file to build\util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Found the goof... tools -> util... :-/ Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698