| OLD | NEW |
| 1 #!/bin/bash -e | 1 #!/bin/bash -e |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 if [ "x$(id -u)" != x0 ]; then | 144 if [ "x$(id -u)" != x0 ]; then |
| 145 echo "Running as non-root user." | 145 echo "Running as non-root user." |
| 146 echo "You might have to enter your password one or more times for 'sudo'." | 146 echo "You might have to enter your password one or more times for 'sudo'." |
| 147 echo | 147 echo |
| 148 fi | 148 fi |
| 149 | 149 |
| 150 # Packages needed for chromeos only | 150 # Packages needed for chromeos only |
| 151 chromeos_dev_list="libpulse-dev" | 151 chromeos_dev_list="libpulse-dev" |
| 152 | 152 |
| 153 # Packages need for development | 153 # Packages need for development |
| 154 dev_list="apache2.2-bin bison fakeroot flex g++ gperf libapache2-mod-php5 | 154 dev_list="apache2.2-bin bison fakeroot flex g++ gperf language-pack-fr |
| 155 libasound2-dev libbz2-dev libcairo2-dev libcups2-dev | 155 libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev |
| 156 libdbus-glib-1-dev libgconf2-dev | 156 libcups2-dev libdbus-glib-1-dev libgconf2-dev |
| 157 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev | 157 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev |
| 158 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev | 158 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev |
| 159 libsctp-dev libsqlite3-dev libxslt1-dev libxss-dev libxtst-dev | 159 libsctp-dev libsqlite3-dev libxslt1-dev libxss-dev libxtst-dev |
| 160 mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config python | 160 mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config python |
| 161 python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic | 161 python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic |
| 162 ttf-kochi-mincho wdiff libcurl4-gnutls-dev ttf-indic-fonts | 162 ttf-kochi-mincho wdiff libcurl4-gnutls-dev ttf-indic-fonts |
| 163 ttf-thai-tlwg | 163 ttf-thai-tlwg |
| 164 $chromeos_dev_list" | 164 $chromeos_dev_list" |
| 165 | 165 |
| 166 # Run-time libraries required by chromeos only | 166 # Run-time libraries required by chromeos only |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 sed -e 's/[.]so[.][0-9].*/.so/' | | 503 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 504 sort -u); do | 504 sort -u); do |
| 505 [ "x${i##*/}" = "xld-linux.so" ] && continue | 505 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 506 [ -r "$i" ] && continue | 506 [ -r "$i" ] && continue |
| 507 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 507 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 508 sort -n | tail -n 1)" | 508 sort -n | tail -n 1)" |
| 509 [ -r "$i.$j" ] || continue | 509 [ -r "$i.$j" ] || continue |
| 510 sudo ln -s "${i##*/}.$j" "$i" | 510 sudo ln -s "${i##*/}.$j" "$i" |
| 511 done | 511 done |
| 512 fi | 512 fi |
| OLD | NEW |