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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 if [ "x$(id -u)" != x0 ]; then | 95 if [ "x$(id -u)" != x0 ]; then |
96 echo "Running as non-root user." | 96 echo "Running as non-root user." |
97 echo "You might have to enter your password one or more times for 'sudo'." | 97 echo "You might have to enter your password one or more times for 'sudo'." |
98 echo | 98 echo |
99 fi | 99 fi |
100 | 100 |
101 # Packages needed for chromeos only | 101 # Packages needed for chromeos only |
102 chromeos_dev_list="libpulse-dev" | 102 chromeos_dev_list="libpulse-dev" |
103 | 103 |
104 # Packages need for development | 104 # Packages need for development |
105 dev_list="apache2.2-bin bison fakeroot flex g++ gperf language-pack-fr | 105 dev_list="apache2.2-bin bison curl fakeroot flex g++ gperf language-pack-fr |
106 libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev | 106 libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev |
107 libcups2-dev libdbus-glib-1-dev libelf-dev libgconf2-dev | 107 libcups2-dev libdbus-glib-1-dev libelf-dev libgconf2-dev |
108 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev | 108 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev |
109 libgtk2.0-dev libjpeg62-dev libkrb5-dev libnspr4-dev libnss3-dev | 109 libgtk2.0-dev libjpeg62-dev libkrb5-dev libnspr4-dev libnss3-dev |
110 libpam0g-dev libsctp-dev libsqlite3-dev libssl-dev libxslt1-dev | 110 libpam0g-dev libsctp-dev libsqlite3-dev libssl-dev libxslt1-dev |
111 libxss-dev libxtst-dev mesa-common-dev msttcorefonts patch perl | 111 libxss-dev libxtst-dev mesa-common-dev msttcorefonts patch perl |
112 libwww-perl php5-cgi pkg-config python python-dev rpm subversion | 112 libwww-perl php5-cgi pkg-config python python-dev rpm subversion |
113 ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff ruby | 113 ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff ruby |
114 libcurl4-gnutls-dev ttf-indic-fonts ttf-thai-tlwg | 114 libcurl4-gnutls-dev ttf-indic-fonts ttf-thai-tlwg |
115 $chromeos_dev_list" | 115 $chromeos_dev_list" |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 sed -e 's/[.]so[.][0-9].*/.so/' | | 501 sed -e 's/[.]so[.][0-9].*/.so/' | |
502 sort -u); do | 502 sort -u); do |
503 [ "x${i##*/}" = "xld-linux.so" ] && continue | 503 [ "x${i##*/}" = "xld-linux.so" ] && continue |
504 [ -r "$i" ] && continue | 504 [ -r "$i" ] && continue |
505 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 505 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
506 sort -n | tail -n 1)" | 506 sort -n | tail -n 1)" |
507 [ -r "$i.$j" ] || continue | 507 [ -r "$i.$j" ] || continue |
508 sudo ln -s "${i##*/}.$j" "$i" | 508 sudo ln -s "${i##*/}.$j" "$i" |
509 done | 509 done |
510 fi | 510 fi |
OLD | NEW |