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

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

Issue 2111383002: [remoting linux host] Fix debian APT sources list entry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10
11 # These settings are copied from chrome/installer/linux/debian/build.sh . 11 # These settings are copied from chrome/installer/linux/debian/build.sh .
12 BASEREPOCONFIG="dl.google.com/linux/chrome-remote-desktop/deb/ stable main" 12 BASEREPOCONFIG="dl.google.com/linux/chrome-remote-desktop/deb/ stable main"
13 REPOCONFIG="deb [arch=${ARCHITECTURE}] http://${BASEREPOCONFIG}}" 13 REPOCONFIG="deb [arch=${ARCHITECTURE}] http://${BASEREPOCONFIG}"
14 # Allowed configs include optional HTTPS support and explicit multiarch 14 # Allowed configs include optional HTTPS support and explicit multiarch
15 # platforms. 15 # platforms.
16 REPOCONFIGREGEX="deb (\\\\[arch=[^]]*\\\\b${ARCHITECTURE}\\\\b[^]]*\\\\]" 16 REPOCONFIGREGEX="deb (\\\\[arch=[^]]*\\\\b${ARCHITECTURE}\\\\b[^]]*\\\\]"
17 REPOCONFIGREGEX+="[[:space:]]*) https?://${BASEREPOCONFIG}" 17 REPOCONFIGREGEX+="[[:space:]]*) https?://${BASEREPOCONFIG}"
18 18
19 source ${SCRIPTDIR}/../../../../chrome/installer/linux/common/installer.include 19 source ${SCRIPTDIR}/../../../../chrome/installer/linux/common/installer.include
20 20
21 guess_filename() { 21 guess_filename() {
22 VERSION_FULL=$(get_version_full) 22 VERSION_FULL=$(get_version_full)
23 echo ${PACKAGE}_${VERSION_FULL}_${ARCHITECTURE}.deb 23 echo ${PACKAGE}_${VERSION_FULL}_${ARCHITECTURE}.deb
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 # dpkg-shlibdeps: error: no dependency information found for ... 143 # dpkg-shlibdeps: error: no dependency information found for ...
144 # It's not clear if we ever want to look in LD_LIBRARY_PATH to resolve deps, 144 # It's not clear if we ever want to look in LD_LIBRARY_PATH to resolve deps,
145 # but it seems that we don't currently, so this is the most expediant fix. 145 # but it seems that we don't currently, so this is the most expediant fix.
146 SAVE_LDLP=$LD_LIBRARY_PATH 146 SAVE_LDLP=$LD_LIBRARY_PATH
147 unset LD_LIBRARY_PATH 147 unset LD_LIBRARY_PATH
148 BUILD_DIR=$OUTPUT_PATH dpkg-buildpackage -b -us -uc 148 BUILD_DIR=$OUTPUT_PATH dpkg-buildpackage -b -us -uc
149 LD_LIBRARY_PATH=$SAVE_LDLP 149 LD_LIBRARY_PATH=$SAVE_LDLP
150 150
151 mv ../${PACKAGE}_*.deb "$OUTPUT_PATH"/ 151 mv ../${PACKAGE}_*.deb "$OUTPUT_PATH"/
152 mv ../${PACKAGE}_*.changes "$OUTPUT_PATH"/ 152 mv ../${PACKAGE}_*.changes "$OUTPUT_PATH"/
OLDNEW
« 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