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 16 matching lines...) Expand all Loading... |
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 | 33 |
34 wget -c http://www.trevp.com/tlslite/tlslite-0.3.8.tar.gz | 34 wget -c http://www.trevp.com/tlslite/tlslite-0.3.8.tar.gz |
35 tar xvfz tlslite-0.3.8.tar.gz | 35 tar xvfz tlslite-0.3.8.tar.gz |
36 cd tlslite-0.3.8/ | 36 cd tlslite-0.3.8/ |
| 37 patch -p1 < ../../third_party/tlslite/google.patch |
37 python setup.py build | 38 python setup.py build |
38 sudo python setup.py install | 39 sudo python setup.py install |
39 cd .. | 40 cd .. |
40 rm -rf tlslite-0.3.8 | 41 rm -rf tlslite-0.3.8 |
41 } | 42 } |
42 | 43 |
43 install_hardy_64() { | 44 install_hardy_64() { |
44 install_hardy | 45 install_hardy |
45 | 46 |
46 # The packages libnspr4, libnss3, and libsqlite don't have 32 | 47 # The packages libnspr4, libnss3, and libsqlite don't have 32 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 then | 99 then |
99 install_hardy | 100 install_hardy |
100 elif egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue && test `uname -m` = x86_64 | 101 elif egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue && test `uname -m` = x86_64 |
101 then | 102 then |
102 install_hardy_64 | 103 install_hardy_64 |
103 else | 104 else |
104 echo "Unsupported system" | 105 echo "Unsupported system" |
105 exit 1 | 106 exit 1 |
106 fi | 107 fi |
107 | 108 |
OLD | NEW |