Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash -e | 1 #!/bin/bash -e |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 bison fakeroot flex g++ gperf libapache2-mod-php5 | 154 dev_list="bison fakeroot flex g++ gperf libapache2-mod-php5 libasound2-dev |
| 155 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev | 155 libbz2-dev libcairo2-dev libdbus-glib-1-dev libgconf2-dev |
| 156 libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev | 156 libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgnome-keyring-dev |
| 157 libgnome-keyring-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev | 157 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev |
| 158 libnss3-dev libpam0g-dev libsctp-dev libsqlite3-dev libxslt1-dev | 158 libsctp-dev libsqlite3-dev libxslt1-dev libxss-dev libxtst-dev |
| 159 libxss-dev libxtst-dev lighttpd mesa-common-dev msttcorefonts patch | 159 mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config python |
| 160 perl php5-cgi pkg-config python python-dev rpm subversion | 160 python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic |
| 161 ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff | 161 ttf-kochi-mincho wdiff libcurl4-gnutls-dev |
| 162 libcurl4-gnutls-dev | |
| 163 $chromeos_dev_list" | 162 $chromeos_dev_list" |
| 164 | 163 |
| 165 # Run-time libraries required by chromeos only | 164 # Run-time libraries required by chromeos only |
| 166 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 165 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
| 167 | 166 |
| 168 # Full list of required run-time libraries | 167 # Full list of required run-time libraries |
| 169 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 | 168 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 |
| 170 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 | 169 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 |
| 171 libnspr4-0d libnss3-1d libpam0g libpango1.0-0 libpcre3 libpixman-1-0 | 170 libnspr4-0d libnss3-1d libpam0g libpango1.0-0 libpcre3 libpixman-1-0 |
| 172 libpng12-0 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 | 171 libpng12-0 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 184 libxrender1-dbg libxtst6-dbg zlib1g-dbg" | 183 libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
| 185 | 184 |
| 186 # CUPS package changed its name from hardy to the next version. Include | 185 # CUPS package changed its name from hardy to the next version. Include |
| 187 # proper package here depending on the system. | 186 # proper package here depending on the system. |
| 188 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then | 187 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then |
| 189 dev_list="${dev_list} libcupsys2-dev" | 188 dev_list="${dev_list} libcupsys2-dev" |
| 190 else | 189 else |
| 191 dev_list="${dev_list} libcups2-dev" | 190 dev_list="${dev_list} libcups2-dev" |
| 192 fi | 191 fi |
| 193 | 192 |
| 193 # apache2.2-bin package was introduced in karmic. | |
| 194 if egrep -q 'Ubuntu (8\.04|8\.10|9\.04)' /etc/issue; then | |
|
Lei Zhang
2011/04/11 17:55:07
All these releases are no longer supported. We're
| |
| 195 dev_list="${dev_list} apache2" | |
| 196 else | |
| 197 dev_list="${dev_list} apache2.2-bin" | |
| 198 fi | |
| 199 | |
| 194 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 200 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
| 195 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 201 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
| 196 # been provided to yes_no(), the function also accepts RETURN as a user input. | 202 # been provided to yes_no(), the function also accepts RETURN as a user input. |
| 197 # The parameter specifies the exit code that should be returned in that case. | 203 # The parameter specifies the exit code that should be returned in that case. |
| 198 # The function will echo the user's selection followed by a newline character. | 204 # The function will echo the user's selection followed by a newline character. |
| 199 # Users can abort the function by pressing CTRL-C. This will call "exit 1". | 205 # Users can abort the function by pressing CTRL-C. This will call "exit 1". |
| 200 yes_no() { | 206 yes_no() { |
| 201 local c | 207 local c |
| 202 while :; do | 208 while :; do |
| 203 c="$(trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT | 209 c="$(trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 sed -e 's/[.]so[.][0-9].*/.so/' | | 506 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 501 sort -u); do | 507 sort -u); do |
| 502 [ "x${i##*/}" = "xld-linux.so" ] && continue | 508 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 503 [ -r "$i" ] && continue | 509 [ -r "$i" ] && continue |
| 504 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 510 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 505 sort -n | tail -n 1)" | 511 sort -n | tail -n 1)" |
| 506 [ -r "$i.$j" ] || continue | 512 [ -r "$i.$j" ] || continue |
| 507 sudo ln -s "${i##*/}.$j" "$i" | 513 sudo ln -s "${i##*/}.$j" "$i" |
| 508 done | 514 done |
| 509 fi | 515 fi |
| OLD | NEW |