| 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 install_gold() { | 7 install_gold() { |
| 8 # Gold is optional; it's a faster replacement for ld, | 8 # Gold is optional; it's a faster replacement for ld, |
| 9 # and makes life on 2GB machines much more pleasant. | 9 # and makes life on 2GB machines much more pleasant. |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 if [ "x$(id -u)" != x0 ]; then | 83 if [ "x$(id -u)" != x0 ]; then |
| 84 echo "Running as non-root user." | 84 echo "Running as non-root user." |
| 85 echo "You might have to enter your password one or more times for 'sudo'." | 85 echo "You might have to enter your password one or more times for 'sudo'." |
| 86 echo | 86 echo |
| 87 fi | 87 fi |
| 88 | 88 |
| 89 # Packages need for development | 89 # Packages need for development |
| 90 dev_list="bison fakeroot flex g++ g++-multilib gperf libasound2-dev | 90 dev_list="bison fakeroot flex g++ g++-multilib gperf libasound2-dev |
| 91 libcairo2-dev libgconf2-dev libglib2.0-dev libgtk2.0-dev libnspr4-dev | 91 libcairo2-dev libgconf2-dev libglib2.0-dev libgtk2.0-dev libnspr4-dev |
| 92 libnss3-dev libsqlite3-dev lighttpd msttcorefonts patch perl php5-cgi | 92 libnss3-dev libsqlite3-dev lighttpd msttcorefonts patch perl php5-cgi |
| 93 pkg-config python subversion wdiff" | 93 pkg-config python rpm subversion wdiff" |
| 94 | 94 |
| 95 # Full list of required run-time libraries | 95 # Full list of required run-time libraries |
| 96 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libexpat1 libfontconfig1 | 96 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libexpat1 libfontconfig1 |
| 97 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d libnss3-1d | 97 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d libnss3-1d |
| 98 libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 | 98 libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 |
| 99 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 | 99 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 |
| 100 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 | 100 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 |
| 101 libxinerama1 libxrandr2 libxrender1 zlib1g" | 101 libxinerama1 libxrandr2 libxrender1 zlib1g" |
| 102 | 102 |
| 103 # Debugging symbols for all of the run-time libraries | 103 # Debugging symbols for all of the run-time libraries |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 sed -e 's/[.]so[.][0-9].*/.so/' | | 347 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 348 sort -u); do | 348 sort -u); do |
| 349 [ "x${i##*/}" = "xld-linux.so" ] && continue | 349 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 350 [ -r "$i" ] && continue | 350 [ -r "$i" ] && continue |
| 351 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 351 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 352 sort -n | tail -n 1)" | 352 sort -n | tail -n 1)" |
| 353 [ -r "$i.$j" ] || continue | 353 [ -r "$i.$j" ] || continue |
| 354 sudo ln -s "${i##*/}.$j" "$i" | 354 sudo ln -s "${i##*/}.$j" "$i" |
| 355 done | 355 done |
| 356 fi | 356 fi |
| OLD | NEW |