OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Script to install everything needed to build chromium (well, ideally, anyway) | 3 # Script to install everything needed to build chromium (well, ideally, anyway) |
4 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 4 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
5 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 5 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
6 | 6 |
7 if ! egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue; then | 7 if ! egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue; then |
8 echo "Only Ubuntu 8.04 and 8.10 are currently supported" >&2 | 8 echo "Only Ubuntu 8.04 and 8.10 are currently supported" >&2 |
9 exit 1 | 9 exit 1 |
10 fi | 10 fi |
11 | 11 |
12 if ! uname -m | egrep -q "i686|x86_64"; then | 12 if ! uname -m | egrep -q "i686|x86_64"; then |
13 echo "Only x86 architectures are currently supported" >&2 | 13 echo "Only x86 architectures are currently supported" >&2 |
14 exit | 14 exit |
15 fi | 15 fi |
16 | 16 |
17 if [ "x$(id -u)" != x0 ]; then | 17 if [ "x$(id -u)" != x0 ]; then |
18 echo "Running as non-root user." | 18 echo "Running as non-root user." |
19 echo "You might have to enter your password one or more times for 'sudo'." | 19 echo "You might have to enter your password one or more times for 'sudo'." |
20 echo | 20 echo |
21 fi | 21 fi |
22 | 22 |
23 # Packages need for development | 23 # Packages need for development |
24 dev_list="subversion pkg-config python perl g++ g++-multilib bison flex gperf | 24 dev_list="bison fakeroot flex g++ g++-multilib gperf libgconf2-dev |
25 libnss3-dev libglib2.0-dev libgtk2.0-dev libnspr4-dev libsqlite3-dev | 25 libglib2.0-dev libgtk2.0-dev libnspr4-dev libnss3-dev |
26 wdiff lighttpd php5-cgi msttcorefonts sun-java6-fonts libgconf2-dev" | 26 libsqlite3-dev lighttpd msttcorefonts perl php5-cgi |
| 27 pkg-config python subversion sun-java6-fonts wdiff" |
27 | 28 |
28 # Full list of required run-time libraries | 29 # Full list of required run-time libraries |
29 lib_list="libatk1.0-0 libc6 libcairo2 libexpat1 libfontconfig1 libfreetype6 | 30 lib_list="libatk1.0-0 libc6 libcairo2 libexpat1 libfontconfig1 libfreetype6 |
30 libglib2.0-0 libgtk2.0-0 libnspr4-0d libnss3-1d libpango1.0-0 | 31 libglib2.0-0 libgtk2.0-0 libnspr4-0d libnss3-1d libpango1.0-0 |
31 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 libsqlite3-0 libx11-6 | 32 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 libsqlite3-0 libx11-6 |
32 libxau6 libxcb-xlib0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 | 33 libxau6 libxcb-xlib0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 |
33 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 | 34 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 |
34 libxrender1 zlib1g" | 35 libxrender1 zlib1g" |
35 | 36 |
36 # Debugging symbols for all of the run-time libraries | 37 # Debugging symbols for all of the run-time libraries |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 sed -e 's/[.]so[.][0-9].*/.so/' | | 239 sed -e 's/[.]so[.][0-9].*/.so/' | |
239 sort -u); do | 240 sort -u); do |
240 [ "x${i##*/}" = "xld-linux.so" ] && continue | 241 [ "x${i##*/}" = "xld-linux.so" ] && continue |
241 [ -r "$i" ] && continue | 242 [ -r "$i" ] && continue |
242 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 243 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
243 sort -n | tail -n 1)" | 244 sort -n | tail -n 1)" |
244 [ -r "$i.$j" ] || continue | 245 [ -r "$i.$j" ] || continue |
245 sudo ln -s "${i##*/}.$j" "$i" | 246 sudo ln -s "${i##*/}.$j" "$i" |
246 done | 247 done |
247 fi | 248 fi |
OLD | NEW |