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|Ubuntu 9.04" /etc/issue; then |
8 echo "Only Ubuntu 8.04 and 8.10 are currently supported" >&2 | 8 echo "Only Ubuntu 8.04, 8.10, and 9.04 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="bison fakeroot flex g++ g++-multilib gperf libgconf2-dev | 24 dev_list="bison fakeroot flex g++ g++-multilib gperf libcairo2-dev libgconf2-dev |
25 libglib2.0-dev libgtk2.0-dev libnspr4-dev libnss3-dev | 25 libglib2.0-dev libgtk2.0-dev libnspr4-dev libnss3-dev |
26 libsqlite3-dev lighttpd msttcorefonts perl php5-cgi | 26 libsqlite3-dev lighttpd msttcorefonts perl php5-cgi |
27 pkg-config python subversion sun-java6-fonts wdiff" | 27 pkg-config python subversion sun-java6-fonts wdiff" |
28 | 28 |
29 # Full list of required run-time libraries | 29 # Full list of required run-time libraries |
30 lib_list="libatk1.0-0 libc6 libcairo2 libexpat1 libfontconfig1 libfreetype6 | 30 lib_list="libatk1.0-0 libc6 libcairo2 libexpat1 libfontconfig1 libfreetype6 |
31 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 |
32 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 |
33 libxau6 libxcb-xlib0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 | 33 libxau6 libxcb-xlib0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 |
34 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 | 34 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 sed -e 's/[.]so[.][0-9].*/.so/' | | 239 sed -e 's/[.]so[.][0-9].*/.so/' | |
240 sort -u); do | 240 sort -u); do |
241 [ "x${i##*/}" = "xld-linux.so" ] && continue | 241 [ "x${i##*/}" = "xld-linux.so" ] && continue |
242 [ -r "$i" ] && continue | 242 [ -r "$i" ] && continue |
243 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 243 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
244 sort -n | tail -n 1)" | 244 sort -n | tail -n 1)" |
245 [ -r "$i.$j" ] || continue | 245 [ -r "$i.$j" ] || continue |
246 sudo ln -s "${i##*/}.$j" "$i" | 246 sudo ln -s "${i##*/}.$j" "$i" |
247 done | 247 done |
248 fi | 248 fi |
OLD | NEW |