OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to install everything needed to build chromium (well, ideally, anyway) | 7 # Script to install everything needed to build chromium (well, ideally, anyway) |
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 exit | 102 exit |
103 fi | 103 fi |
104 | 104 |
105 if [ "x$(id -u)" != x0 ]; then | 105 if [ "x$(id -u)" != x0 ]; then |
106 echo "Running as non-root user." | 106 echo "Running as non-root user." |
107 echo "You might have to enter your password one or more times for 'sudo'." | 107 echo "You might have to enter your password one or more times for 'sudo'." |
108 echo | 108 echo |
109 fi | 109 fi |
110 | 110 |
111 # Packages need for development | 111 # Packages need for development |
112 dev_list="bison fakeroot flex g++ g++-multilib gperf libasound2-dev | 112 dev_list="apache2 bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5 |
113 libcairo2-dev libgconf2-dev libglib2.0-dev libgtk2.0-dev libnspr4-dev | 113 libasound2-dev libcairo2-dev libgconf2-dev libglib2.0-dev |
114 libnss3-dev libsqlite3-dev lighttpd msttcorefonts patch perl php5-cgi | 114 libgtk2.0-dev libnspr4-dev libnss3-dev libsqlite3-dev lighttpd |
115 pkg-config python rpm subversion wdiff" | 115 msttcorefonts patch perl php5-cgi pkg-config python rpm subversion |
| 116 wdiff" |
116 | 117 |
117 # Full list of required run-time libraries | 118 # Full list of required run-time libraries |
118 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libexpat1 | 119 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libexpat1 |
119 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d | 120 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d |
120 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 | 121 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 |
121 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 | 122 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 |
122 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 | 123 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 |
123 libxinerama1 libxrandr2 libxrender1 zlib1g" | 124 libxinerama1 libxrandr2 libxrender1 zlib1g" |
124 | 125 |
125 # Debugging symbols for all of the run-time libraries | 126 # Debugging symbols for all of the run-time libraries |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 sed -e 's/[.]so[.][0-9].*/.so/' | | 386 sed -e 's/[.]so[.][0-9].*/.so/' | |
386 sort -u); do | 387 sort -u); do |
387 [ "x${i##*/}" = "xld-linux.so" ] && continue | 388 [ "x${i##*/}" = "xld-linux.so" ] && continue |
388 [ -r "$i" ] && continue | 389 [ -r "$i" ] && continue |
389 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 390 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
390 sort -n | tail -n 1)" | 391 sort -n | tail -n 1)" |
391 [ -r "$i.$j" ] || continue | 392 [ -r "$i.$j" ] || continue |
392 sudo ln -s "${i##*/}.$j" "$i" | 393 sudo ln -s "${i##*/}.$j" "$i" |
393 done | 394 done |
394 fi | 395 fi |
OLD | NEW |