| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 exit | 42 exit |
| 43 fi | 43 fi |
| 44 | 44 |
| 45 if [ "x$(id -u)" != x0 ]; then | 45 if [ "x$(id -u)" != x0 ]; then |
| 46 echo "Running as non-root user." | 46 echo "Running as non-root user." |
| 47 echo "You might have to enter your password one or more times for 'sudo'." | 47 echo "You might have to enter your password one or more times for 'sudo'." |
| 48 echo | 48 echo |
| 49 fi | 49 fi |
| 50 | 50 |
| 51 # Packages needed for chromeos only | 51 # Packages needed for chromeos only |
| 52 chromeos_dev_list="libpulse-dev" | 52 chromeos_dev_list="libbluetooth-dev libpulse-dev" |
| 53 | 53 |
| 54 # Packages need for development | 54 # Packages need for development |
| 55 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf | 55 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf |
| 56 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev | 56 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev |
| 57 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libdbus-glib-1-dev | 57 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libdbus-glib-1-dev |
| 58 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev | 58 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev |
| 59 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev | 59 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev |
| 60 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev | 60 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev |
| 61 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev | 61 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev |
| 62 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch | 62 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 sed -e 's/[.]so[.][0-9].*/.so/' | | 391 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 392 sort -u); do | 392 sort -u); do |
| 393 [ "x${i##*/}" = "xld-linux.so" ] && continue | 393 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 394 [ -r "$i" ] && continue | 394 [ -r "$i" ] && continue |
| 395 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 395 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 396 sort -n | tail -n 1)" | 396 sort -n | tail -n 1)" |
| 397 [ -r "$i.$j" ] || continue | 397 [ -r "$i.$j" ] || continue |
| 398 sudo ln -s "${i##*/}.$j" "$i" | 398 sudo ln -s "${i##*/}.$j" "$i" |
| 399 done | 399 done |
| 400 fi | 400 fi |
| OLD | NEW |