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 mojo (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 |
11 usage() { | 11 usage() { |
12 echo "Usage: $0 [--options]" | 12 echo "Usage: $0 [--options]" |
13 echo "Options:" | 13 echo "Options:" |
14 echo "--[no-]syms: enable or disable installation of debugging symbols" | 14 echo "--[no-]syms: enable or disable installation of debugging symbols" |
15 echo "--[no-]arm: enable or disable installation of arm cross toolchain" | 15 echo "--[no-]arm: enable or disable installation of arm cross toolchain" |
16 echo "--[no-]chromeos-fonts: enable or disable installation of Chrome OS"\ | 16 echo "--[no-]chromeos-fonts: enable or disable installation of Chrome OS"\ |
17 "fonts" | 17 "fonts" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 *) # The user pressed an unrecognized key. As we are not echoing | 241 *) # The user pressed an unrecognized key. As we are not echoing |
242 # any incorrect user input, alert the user by ringing the bell. | 242 # any incorrect user input, alert the user by ringing the bell. |
243 (tput bel) 2>/dev/null | 243 (tput bel) 2>/dev/null |
244 ;; | 244 ;; |
245 esac | 245 esac |
246 done | 246 done |
247 } | 247 } |
248 | 248 |
249 if test "$do_inst_syms" = "" && test 0 -eq ${do_quick_check-0} | 249 if test "$do_inst_syms" = "" && test 0 -eq ${do_quick_check-0} |
250 then | 250 then |
251 echo "This script installs all tools and libraries needed to build Mojo." | 251 echo "This script installs all tools and libraries needed to build Chromium." |
252 echo "" | 252 echo "" |
253 echo "For most of the libraries, it can also install debugging symbols, which" | 253 echo "For most of the libraries, it can also install debugging symbols, which" |
254 echo "will allow you to debug code in the system libraries. Most developers" | 254 echo "will allow you to debug code in the system libraries. Most developers" |
255 echo "won't need these symbols." | 255 echo "won't need these symbols." |
256 echo -n "Do you want me to install them for you (y/N) " | 256 echo -n "Do you want me to install them for you (y/N) " |
257 if yes_no 1; then | 257 if yes_no 1; then |
258 do_inst_syms=1 | 258 do_inst_syms=1 |
259 fi | 259 fi |
260 fi | 260 fi |
261 if test "$do_inst_syms" = "1"; then | 261 if test "$do_inst_syms" = "1"; then |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 echo "Installing symbolic links for NaCl." | 401 echo "Installing symbolic links for NaCl." |
402 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then | 402 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then |
403 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so | 403 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so |
404 fi | 404 fi |
405 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then | 405 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then |
406 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so | 406 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so |
407 fi | 407 fi |
408 else | 408 else |
409 echo "Skipping symbolic links for NaCl." | 409 echo "Skipping symbolic links for NaCl." |
410 fi | 410 fi |
OLD | NEW |