| 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|Ubuntu 9.04" /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, 8.10, and 9.04 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 # Debugging symbols for all of the run-time libraries | 37 # Debugging symbols for all of the run-time libraries |
| 38 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 38 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
| 39 libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg libnss3-1d-dbg | 39 libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg libnss3-1d-dbg |
| 40 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg libx11-6-dbg | 40 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg libx11-6-dbg |
| 41 libxau6-dbg libxcb-xlib0-dbg libxcb1-dbg libxcomposite1-dbg | 41 libxau6-dbg libxcb-xlib0-dbg libxcb1-dbg libxcomposite1-dbg |
| 42 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 42 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
| 43 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 43 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
| 44 libxrender1-dbg zlib1g-dbg" | 44 libxrender1-dbg zlib1g-dbg" |
| 45 | 45 |
| 46 # Standard 32bit compatibility libraries | 46 # Standard 32bit compatibility libraries |
| 47 cmp_list="ia32-libs lib32readline-dev lib32stdc++6 lib32z1 lib32z1-dev | 47 cmp_list="ia32-libs lib32asound2-dev lib32readline-dev lib32stdc++6 lib32z1 |
| 48 libc6-dev-i386 libc6-i386" | 48 lib32z1-dev libc6-dev-i386 libc6-i386" |
| 49 | 49 |
| 50 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 50 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
| 51 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 51 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
| 52 # been provided to yes_no(), the function also accepts RETURN as a user input. | 52 # been provided to yes_no(), the function also accepts RETURN as a user input. |
| 53 # The parameter specifies the exit code that should be returned in that case. | 53 # The parameter specifies the exit code that should be returned in that case. |
| 54 # The function will echo the user's selection followed by a newline character. | 54 # The function will echo the user's selection followed by a newline character. |
| 55 # Users can abort the function by pressing CTRL-C. This will call "exit 1". | 55 # Users can abort the function by pressing CTRL-C. This will call "exit 1". |
| 56 yes_no() { | 56 yes_no() { |
| 57 local c | 57 local c |
| 58 while :; do | 58 while :; do |
| (...skipping 180 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 |