| 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 http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
| 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 echo "Script will prompt interactively if options not given." | 26 echo "Script will prompt interactively if options not given." |
| 27 exit 1 | 27 exit 1 |
| 28 } | 28 } |
| 29 | 29 |
| 30 # Checks whether a particular package is available in the repos. | 30 # Checks whether a particular package is available in the repos. |
| 31 # USAGE: $ package_exists <package name> | 31 # USAGE: $ package_exists <package name> |
| 32 package_exists() { | 32 package_exists() { |
| 33 apt-cache pkgnames | grep -x "$1" > /dev/null 2>&1 | 33 apt-cache pkgnames | grep -x "$1" > /dev/null 2>&1 |
| 34 } | 34 } |
| 35 | 35 |
| 36 # These default to on because (some) bots need them and it keeps things |
| 37 # simple for the bot setup if all bots just run the script in its default |
| 38 # mode. Developers who don't want stuff they don't need installed on their |
| 39 # own workstations can pass --no-arm --no-nacl when running the script. |
| 40 do_inst_arm=1 |
| 41 do_inst_nacl=1 |
| 42 |
| 36 while test "$1" != "" | 43 while test "$1" != "" |
| 37 do | 44 do |
| 38 case "$1" in | 45 case "$1" in |
| 39 --syms) do_inst_syms=1;; | 46 --syms) do_inst_syms=1;; |
| 40 --no-syms) do_inst_syms=0;; | 47 --no-syms) do_inst_syms=0;; |
| 41 --lib32) do_inst_lib32=1;; | 48 --lib32) do_inst_lib32=1;; |
| 42 --no-lib32) do_inst_lib32=0;; | 49 --no-lib32) do_inst_lib32=0;; |
| 43 --arm) do_inst_arm=1;; | 50 --arm) do_inst_arm=1;; |
| 44 --no-arm) do_inst_arm=0;; | 51 --no-arm) do_inst_arm=0;; |
| 45 --chromeos-fonts) do_inst_chromeos_fonts=1;; | 52 --chromeos-fonts) do_inst_chromeos_fonts=1;; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 sed -e 's/[.]so[.][0-9].*/.so/' | | 583 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 577 sort -u); do | 584 sort -u); do |
| 578 [ "x${i##*/}" = "xld-linux.so" ] && continue | 585 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 579 [ -r "$i" ] && continue | 586 [ -r "$i" ] && continue |
| 580 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 587 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 581 sort -n | tail -n 1)" | 588 sort -n | tail -n 1)" |
| 582 [ -r "$i.$j" ] || continue | 589 [ -r "$i.$j" ] || continue |
| 583 sudo ln -s "${i##*/}.$j" "$i" | 590 sudo ln -s "${i##*/}.$j" "$i" |
| 584 done | 591 done |
| 585 fi | 592 fi |
| OLD | NEW |