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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 fi | 128 fi |
129 | 129 |
130 if [ "x$(id -u)" != x0 ]; then | 130 if [ "x$(id -u)" != x0 ]; then |
131 echo "Running as non-root user." | 131 echo "Running as non-root user." |
132 echo "You might have to enter your password one or more times for 'sudo'." | 132 echo "You might have to enter your password one or more times for 'sudo'." |
133 echo | 133 echo |
134 fi | 134 fi |
135 | 135 |
136 # Packages need for development | 136 # Packages need for development |
137 dev_list="apache2 bison fakeroot flex g++ gperf libapache2-mod-php5 | 137 dev_list="apache2 bison fakeroot flex g++ gperf libapache2-mod-php5 |
138 libasound2-dev libbz2-dev libcairo2-dev libcupsys2-dev | 138 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev |
139 libdbus-glib-1-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev | 139 libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev |
140 libglib2.0-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev | 140 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev |
141 libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev lighttpd | 141 libsqlite3-dev libxslt1-dev libxss-dev lighttpd mesa-common-dev |
142 mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config python | 142 msttcorefonts patch perl php5-cgi pkg-config python python-dev rpm |
143 python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic | 143 subversion ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff" |
144 ttf-kochi-mincho wdiff" | |
145 | 144 |
146 # Full list of required run-time libraries | 145 # Full list of required run-time libraries |
147 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 | 146 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 |
148 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d | 147 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d |
149 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 | 148 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 |
150 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 | 149 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 |
151 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 | 150 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 |
152 libxinerama1 libxrandr2 libxrender1 zlib1g" | 151 libxinerama1 libxrandr2 libxrender1 zlib1g" |
153 | 152 |
154 # Debugging symbols for all of the run-time libraries | 153 # Debugging symbols for all of the run-time libraries |
155 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg | 154 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg |
156 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg | 155 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg |
157 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg | 156 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg |
158 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg | 157 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg |
159 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 158 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
160 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 159 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
161 libxrender1-dbg zlib1g-dbg" | 160 libxrender1-dbg zlib1g-dbg" |
162 | 161 |
| 162 # CUPS package changed it's name from hardy to the next version. Include |
| 163 # proper package here depending on the system. |
| 164 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then |
| 165 dev_list="${dev_list} libcupsys2-dev" |
| 166 else |
| 167 dev_list="${dev_list} libcups2-dev" |
| 168 fi |
| 169 |
163 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 170 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
164 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 171 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
165 # been provided to yes_no(), the function also accepts RETURN as a user input. | 172 # been provided to yes_no(), the function also accepts RETURN as a user input. |
166 # The parameter specifies the exit code that should be returned in that case. | 173 # The parameter specifies the exit code that should be returned in that case. |
167 # The function will echo the user's selection followed by a newline character. | 174 # The function will echo the user's selection followed by a newline character. |
168 # Users can abort the function by pressing CTRL-C. This will call "exit 1". | 175 # Users can abort the function by pressing CTRL-C. This will call "exit 1". |
169 yes_no() { | 176 yes_no() { |
170 local c | 177 local c |
171 while :; do | 178 while :; do |
172 c="$(trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT | 179 c="$(trap 'stty echo -iuclc icanon 2>/dev/null' EXIT INT TERM QUIT |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 sed -e 's/[.]so[.][0-9].*/.so/' | | 441 sed -e 's/[.]so[.][0-9].*/.so/' | |
435 sort -u); do | 442 sort -u); do |
436 [ "x${i##*/}" = "xld-linux.so" ] && continue | 443 [ "x${i##*/}" = "xld-linux.so" ] && continue |
437 [ -r "$i" ] && continue | 444 [ -r "$i" ] && continue |
438 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 445 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
439 sort -n | tail -n 1)" | 446 sort -n | tail -n 1)" |
440 [ -r "$i.$j" ] || continue | 447 [ -r "$i.$j" ] || continue |
441 sudo ln -s "${i##*/}.$j" "$i" | 448 sudo ln -s "${i##*/}.$j" "$i" |
442 done | 449 done |
443 fi | 450 fi |
OLD | NEW |