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

Side by Side Diff: build/install-build-deps.sh

Issue 2790453002: Fix case error in install-build-deps.sh (Closed)
Patch Set: Created 3 years, 8 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 # Script to install everything needed to build chromium (well, ideally, anyway) 7 # Script to install everything needed to build chromium (well, ideally, anyway)
8 # See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i nstructions.md 8 # See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i nstructions.md
9 9
10 usage() { 10 usage() {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 EM_REPO="deb http://emdebian.org/tools/debian/ jessie main" 310 EM_REPO="deb http://emdebian.org/tools/debian/ jessie main"
311 EM_SOURCE=$(cat <<EOF 311 EM_SOURCE=$(cat <<EOF
312 # Repo added by Chromium $0 312 # Repo added by Chromium $0
313 ${EM_REPO} 313 ${EM_REPO}
314 # deb-src http://emdebian.org/tools/debian/ jessie main 314 # deb-src http://emdebian.org/tools/debian/ jessie main
315 EOF 315 EOF
316 ) 316 )
317 EM_ARCHIVE_KEY_FINGER="084C6C6F39159EDB67969AA87DE089671804772E" 317 EM_ARCHIVE_KEY_FINGER="084C6C6F39159EDB67969AA87DE089671804772E"
318 GPP_ARM_PACKAGE="g++-arm-linux-gnueabihf" 318 GPP_ARM_PACKAGE="g++-arm-linux-gnueabihf"
319 case $lsb_release in 319 case $lsb_release in
320 "jessie") 320 jessie)
321 eval $(apt-config shell APT_SOURCESDIR 'Dir::Etc::sourceparts/d') 321 eval $(apt-config shell APT_SOURCESDIR 'Dir::Etc::sourceparts/d')
322 CROSSTOOLS_LIST="${APT_SOURCESDIR}/crosstools.list" 322 CROSSTOOLS_LIST="${APT_SOURCESDIR}/crosstools.list"
323 arm_list="libc6-dev:armhf 323 arm_list="libc6-dev:armhf
324 linux-libc-dev:armhf" 324 linux-libc-dev:armhf"
325 if test "$do_inst_arm" = "1"; then 325 if test "$do_inst_arm" = "1"; then
326 if $(dpkg-query -W ${GPP_ARM_PACKAGE} &>/dev/null); then 326 if $(dpkg-query -W ${GPP_ARM_PACKAGE} &>/dev/null); then
327 arm_list+=" ${GPP_ARM_PACKAGE}" 327 arm_list+=" ${GPP_ARM_PACKAGE}"
328 else 328 else
329 echo "The Debian Cross-toolchains repository is necessary to" 329 echo "The Debian Cross-toolchains repository is necessary to"
330 echo "cross-compile Chromium for arm." 330 echo "cross-compile Chromium for arm."
331 echo -n "Do you want me to add it for you (y/N) " 331 echo -n "Do you want me to add it for you (y/N) "
332 if yes_no 1; then 332 if yes_no 1; then
333 gpg --keyserver pgp.mit.edu --recv-keys ${EM_ARCHIVE_KEY_FINGER} 333 gpg --keyserver pgp.mit.edu --recv-keys ${EM_ARCHIVE_KEY_FINGER}
334 gpg -a --export ${EM_ARCHIVE_KEY_FINGER} | sudo apt-key add - 334 gpg -a --export ${EM_ARCHIVE_KEY_FINGER} | sudo apt-key add -
335 if ! grep "^${EM_REPO}" "${CROSSTOOLS_LIST}" &>/dev/null; then 335 if ! grep "^${EM_REPO}" "${CROSSTOOLS_LIST}" &>/dev/null; then
336 echo "${EM_SOURCE}" | sudo tee -a "${CROSSTOOLS_LIST}" >/dev/null 336 echo "${EM_SOURCE}" | sudo tee -a "${CROSSTOOLS_LIST}" >/dev/null
337 fi 337 fi
338 arm_list+=" ${GPP_ARM_PACKAGE}" 338 arm_list+=" ${GPP_ARM_PACKAGE}"
339 fi 339 fi
340 fi 340 fi
341 fi 341 fi
342 ;; 342 ;;
343 "*") 343 *)
344 arm_list="binutils-aarch64-linux-gnu 344 arm_list="binutils-aarch64-linux-gnu
345 libc6-dev-armhf-cross 345 libc6-dev-armhf-cross
346 linux-libc-dev-armhf-cross 346 linux-libc-dev-armhf-cross
347 ${GPP_ARM_PACKAGE}" 347 ${GPP_ARM_PACKAGE}"
348 ;; 348 ;;
349 esac 349 esac
350 350
351 # Work around for dependency issue Ubuntu/Trusty: http://crbug.com/435056 351 # Work around for dependency issue Ubuntu/Trusty: http://crbug.com/435056
352 case $lsb_release in 352 case $lsb_release in
353 trusty) 353 trusty)
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 if (echo "${OLD_LOCALE_GEN}" | cmp -s ${LOCALE_GEN}); then 691 if (echo "${OLD_LOCALE_GEN}" | cmp -s ${LOCALE_GEN}); then
692 echo "Locales already up-to-date." 692 echo "Locales already up-to-date."
693 else 693 else
694 sudo locale-gen 694 sudo locale-gen
695 fi 695 fi
696 else 696 else
697 for CHROMIUM_LOCALE in ${CHROMIUM_LOCALES}; do 697 for CHROMIUM_LOCALE in ${CHROMIUM_LOCALES}; do
698 sudo locale-gen ${CHROMIUM_LOCALE} 698 sudo locale-gen ${CHROMIUM_LOCALE}
699 done 699 done
700 fi 700 fi
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