| 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 # 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 echo "(maybe missing a repo or need to 'sudo apt-get update'):" | 594 echo "(maybe missing a repo or need to 'sudo apt-get update'):" |
| 595 echo -e "${unknown}" | sed -e "s/^/ /" | 595 echo -e "${unknown}" | sed -e "s/^/ /" |
| 596 fi | 596 fi |
| 597 exit 1 | 597 exit 1 |
| 598 fi | 598 fi |
| 599 exit 0 | 599 exit 0 |
| 600 fi | 600 fi |
| 601 | 601 |
| 602 if test "$do_inst_lib32" = "1" || test "$do_inst_nacl" = "1"; then | 602 if test "$do_inst_lib32" = "1" || test "$do_inst_nacl" = "1"; then |
| 603 sudo dpkg --add-architecture i386 | 603 sudo dpkg --add-architecture i386 |
| 604 if [[ $distro_id == "Debian" ]]; then | |
| 605 sudo dpkg --add-architecture armhf | |
| 606 fi | |
| 607 fi | 604 fi |
| 608 sudo apt-get update | 605 sudo apt-get update |
| 609 | 606 |
| 610 # We initially run "apt-get" with the --reinstall option and parse its output. | 607 # We initially run "apt-get" with the --reinstall option and parse its output. |
| 611 # This way, we can find all the packages that need to be newly installed | 608 # This way, we can find all the packages that need to be newly installed |
| 612 # without accidentally promoting any packages from "auto" to "manual". | 609 # without accidentally promoting any packages from "auto" to "manual". |
| 613 # We then re-run "apt-get" with just the list of missing packages. | 610 # We then re-run "apt-get" with just the list of missing packages. |
| 614 echo "Finding missing packages..." | 611 echo "Finding missing packages..." |
| 615 # Intentionally leaving $packages unquoted so it's more readable. | 612 # Intentionally leaving $packages unquoted so it's more readable. |
| 616 echo "Packages required: " $packages | 613 echo "Packages required: " $packages |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 if (echo "${OLD_LOCALE_GEN}" | cmp -s ${LOCALE_GEN}); then | 678 if (echo "${OLD_LOCALE_GEN}" | cmp -s ${LOCALE_GEN}); then |
| 682 echo "Locales already up-to-date." | 679 echo "Locales already up-to-date." |
| 683 else | 680 else |
| 684 sudo locale-gen | 681 sudo locale-gen |
| 685 fi | 682 fi |
| 686 else | 683 else |
| 687 for CHROMIUM_LOCALE in ${CHROMIUM_LOCALES}; do | 684 for CHROMIUM_LOCALE in ${CHROMIUM_LOCALES}; do |
| 688 sudo locale-gen ${CHROMIUM_LOCALE} | 685 sudo locale-gen ${CHROMIUM_LOCALE} |
| 689 done | 686 done |
| 690 fi | 687 fi |
| OLD | NEW |