OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 orig="$(echo "${tmp}/${i}"_*_i386.deb)" | 348 orig="$(echo "${tmp}/${i}"_*_i386.deb)" |
349 compat="$(echo "${orig}" | | 349 compat="$(echo "${orig}" | |
350 sed -e 's,\(_[^_/]*_\)i386\(.deb\),-ia32\1amd64\2,')" | 350 sed -e 's,\(_[^_/]*_\)i386\(.deb\),-ia32\1amd64\2,')" |
351 rm -rf "${tmp}/staging" | 351 rm -rf "${tmp}/staging" |
352 msg="$(fakeroot -u sh -exc ' | 352 msg="$(fakeroot -u sh -exc ' |
353 # Unpack 32bit Debian archive | 353 # Unpack 32bit Debian archive |
354 umask 022 | 354 umask 022 |
355 mkdir -p "'"${tmp}"'/staging/dpkg/DEBIAN" | 355 mkdir -p "'"${tmp}"'/staging/dpkg/DEBIAN" |
356 cd "'"${tmp}"'/staging" | 356 cd "'"${tmp}"'/staging" |
357 ar x "'${orig}'" | 357 ar x "'${orig}'" |
358 tar zCfx dpkg data.tar.gz | 358 tar Cfx dpkg data.tar* |
359 tar zCfx dpkg/DEBIAN control.tar.gz | 359 tar zCfx dpkg/DEBIAN control.tar.gz |
360 | 360 |
361 # Create a posix extended regular expression fragment that will | 361 # Create a posix extended regular expression fragment that will |
362 # recognize the includes which have changed. Should be rare, | 362 # recognize the includes which have changed. Should be rare, |
363 # will almost always be empty. | 363 # will almost always be empty. |
364 includes=`sed -n -e "s/^[0-9a-z]* //g" \ | 364 includes=`sed -n -e "s/^[0-9a-z]* //g" \ |
365 -e "\,usr/include/,p" dpkg/DEBIAN/md5sums | | 365 -e "\,usr/include/,p" dpkg/DEBIAN/md5sums | |
366 xargs -n 1 -I FILE /bin/sh -c \ | 366 xargs -n 1 -I FILE /bin/sh -c \ |
367 "cmp -s dpkg/FILE /FILE || echo FILE" | | 367 "cmp -s dpkg/FILE /FILE || echo FILE" | |
368 tr "\n" "|" | | 368 tr "\n" "|" | |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 sed -e 's/[.]so[.][0-9].*/.so/' | | 462 sed -e 's/[.]so[.][0-9].*/.so/' | |
463 sort -u); do | 463 sort -u); do |
464 [ "x${i##*/}" = "xld-linux.so" ] && continue | 464 [ "x${i##*/}" = "xld-linux.so" ] && continue |
465 [ -r "$i" ] && continue | 465 [ -r "$i" ] && continue |
466 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 466 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
467 sort -n | tail -n 1)" | 467 sort -n | tail -n 1)" |
468 [ -r "$i.$j" ] || continue | 468 [ -r "$i.$j" ] || continue |
469 sudo ln -s "${i##*/}.$j" "$i" | 469 sudo ln -s "${i##*/}.$j" "$i" |
470 done | 470 done |
471 fi | 471 fi |
OLD | NEW |