| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Script to install everything needed to build chromium (well, ideally, anyway) | 2 # Script to install everything needed to build chromium (well, ideally, anyway) |
| 3 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 3 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
| 4 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 4 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
| 5 set -ex | 5 set -ex |
| 6 | 6 |
| 7 # TODO(dkegel): add sha1sum verification | 7 # TODO(dkegel): add sha1sum verification |
| 8 download() { | 8 download() { |
| 9 dir=$1 | 9 dir=$1 |
| 10 file=$2 | 10 file=$2 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 download_deb() { | 24 download_deb() { |
| 25 download $1 $2 | 25 download $1 $2 |
| 26 unpack_deb $2 | 26 unpack_deb $2 |
| 27 } | 27 } |
| 28 | 28 |
| 29 install_hardy() { | 29 install_hardy() { |
| 30 sudo apt-get install subversion pkg-config python perl g++ g++-multilib \ | 30 sudo apt-get install subversion pkg-config python perl g++ g++-multilib \ |
| 31 bison flex gperf libnss3-dev libglib2.0-dev libgtk2.0-dev \ | 31 bison flex gperf libnss3-dev libglib2.0-dev libgtk2.0-dev \ |
| 32 libnspr4-0d libnspr4-dev wdiff lighttpd php5-cgi msttcorefonts \ | 32 libnspr4-0d libnspr4-dev wdiff lighttpd php5-cgi msttcorefonts \ |
| 33 sun-java6-fonts | 33 sun-java6-fonts |
| 34 | |
| 35 wget -c http://www.trevp.com/tlslite/tlslite-0.3.8.tar.gz | |
| 36 tar xvfz tlslite-0.3.8.tar.gz | |
| 37 cd tlslite-0.3.8/ | |
| 38 patch -p1 < ../../third_party/tlslite/google.patch | |
| 39 python setup.py build | |
| 40 sudo python setup.py install | |
| 41 cd .. | |
| 42 rm -rf tlslite-0.3.8 | |
| 43 } | 34 } |
| 44 | 35 |
| 45 install_hardy_64() { | 36 install_hardy_64() { |
| 46 install_hardy | 37 install_hardy |
| 47 | 38 |
| 48 # The packages libnspr4, libnss3, and libsqlite don't have 32 | 39 # The packages libnspr4, libnss3, and libsqlite don't have 32 |
| 49 # bit compabibility versions on 64 bit ubuntu hardy, | 40 # bit compabibility versions on 64 bit ubuntu hardy, |
| 50 # so install them packages the hard way | 41 # so install them packages the hard way |
| 51 # See https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/246911 | 42 # See https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/246911 |
| 52 # TODO: There is no bug report yet for 32 bit sqlite runtime | 43 # TODO: There is no bug report yet for 32 bit sqlite runtime |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 then | 91 then |
| 101 install_hardy | 92 install_hardy |
| 102 elif egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue && test `uname -m` = x86_64 | 93 elif egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue && test `uname -m` = x86_64 |
| 103 then | 94 then |
| 104 install_hardy_64 | 95 install_hardy_64 |
| 105 else | 96 else |
| 106 echo "Unsupported system" | 97 echo "Unsupported system" |
| 107 exit 1 | 98 exit 1 |
| 108 fi | 99 fi |
| 109 | 100 |
| OLD | NEW |