| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 echo | 243 echo |
| 244 echo "The code for installing 32bit libraries on a 64bit system is" | 244 echo "The code for installing 32bit libraries on a 64bit system is" |
| 245 echo "unmaintained and might not work with modern versions of Ubuntu" | 245 echo "unmaintained and might not work with modern versions of Ubuntu" |
| 246 echo "or Debian." | 246 echo "or Debian." |
| 247 echo | 247 echo |
| 248 echo -n "Are you sure you want to proceed (y/N) " | 248 echo -n "Are you sure you want to proceed (y/N) " |
| 249 if yes_no 1; then | 249 if yes_no 1; then |
| 250 do_inst_lib32=1 | 250 do_inst_lib32=1 |
| 251 fi | 251 fi |
| 252 if test "$do_inst_lib32" != "1" | 252 if test "$do_inst_lib32" != "1" |
| 253 then |
| 253 exit 0 | 254 exit 0 |
| 254 fi | 255 fi |
| 255 | 256 |
| 256 # Standard 32bit compatibility libraries | 257 # Standard 32bit compatibility libraries |
| 257 echo "First, installing the limited existing 32-bit support..." | 258 echo "First, installing the limited existing 32-bit support..." |
| 258 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 | 259 cmp_list="ia32-libs lib32asound2-dev lib32stdc++6 lib32z1 |
| 259 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" | 260 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" |
| 260 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then | 261 if [ -n "`apt-cache search lib32readline-gplv2-dev 2>/dev/null`" ]; then |
| 261 cmp_list="${cmp_list} lib32readline-gplv2-dev" | 262 cmp_list="${cmp_list} lib32readline-gplv2-dev" |
| 262 else | 263 else |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 sed -e 's/[.]so[.][0-9].*/.so/' | | 409 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 409 sort -u); do | 410 sort -u); do |
| 410 [ "x${i##*/}" = "xld-linux.so" ] && continue | 411 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 411 [ -r "$i" ] && continue | 412 [ -r "$i" ] && continue |
| 412 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 413 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 413 sort -n | tail -n 1)" | 414 sort -n | tail -n 1)" |
| 414 [ -r "$i.$j" ] || continue | 415 [ -r "$i.$j" ] || continue |
| 415 sudo ln -s "${i##*/}.$j" "$i" | 416 sudo ln -s "${i##*/}.$j" "$i" |
| 416 done | 417 done |
| 417 fi | 418 fi |
| OLD | NEW |