Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Side by Side Diff: build/install-build-deps.sh

Issue 99076: Update the build installation script to make it work on ubuntu 9.04 (Closed)
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698