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 |
(...skipping 25 matching lines...) Expand all Loading... |
36 # Debugging symbols for all of the run-time libraries | 36 # Debugging symbols for all of the run-time libraries |
37 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 37 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
38 libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg libnss3-1d-dbg | 38 libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg libnss3-1d-dbg |
39 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg libx11-6-dbg | 39 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg libx11-6-dbg |
40 libxau6-dbg libxcb-xlib0-dbg libxcb1-dbg libxcomposite1-dbg | 40 libxau6-dbg libxcb-xlib0-dbg libxcb1-dbg libxcomposite1-dbg |
41 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 41 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
42 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 42 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
43 libxrender1-dbg zlib1g-dbg" | 43 libxrender1-dbg zlib1g-dbg" |
44 | 44 |
45 # Standard 32bit compatibility libraries | 45 # Standard 32bit compatibility libraries |
46 cmp_list="ia32-libs lib32stdc++6 lib32z1 lib32z1-dev libc6-dev-i386 libc6-i386" | 46 cmp_list="ia32-libs lib32readline-dev lib32stdc++6 lib32z1 lib32z1-dev |
| 47 libc6-dev-i386 libc6-i386" |
47 | 48 |
48 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 49 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
49 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 50 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
50 # been provided to yes_no(), the function also accepts RETURN as a user input. | 51 # been provided to yes_no(), the function also accepts RETURN as a user input. |
51 # The parameter specifies the exit code that should be returned in that case. | 52 # The parameter specifies the exit code that should be returned in that case. |
52 # The function will echo the user's selection followed by a newline character. | 53 # The function will echo the user's selection followed by a newline character. |
53 # Users can abort the function by pressing CTRL-C. This will call "exit 1". | 54 # Users can abort the function by pressing CTRL-C. This will call "exit 1". |
54 yes_no() { | 55 yes_no() { |
55 local c | 56 local c |
56 while :; do | 57 while :; do |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 sed -e 's/[.]so[.][0-9].*/.so/' | | 238 sed -e 's/[.]so[.][0-9].*/.so/' | |
238 sort -u); do | 239 sort -u); do |
239 [ "x${i##*/}" = "xld-linux.so" ] && continue | 240 [ "x${i##*/}" = "xld-linux.so" ] && continue |
240 [ -r "$i" ] && continue | 241 [ -r "$i" ] && continue |
241 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 242 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
242 sort -n | tail -n 1)" | 243 sort -n | tail -n 1)" |
243 [ -r "$i.$j" ] || continue | 244 [ -r "$i.$j" ] || continue |
244 sudo ln -s "${i##*/}.$j" "$i" | 245 sudo ln -s "${i##*/}.$j" "$i" |
245 done | 246 done |
246 fi | 247 fi |
OLD | NEW |