Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: build/install-build-deps.sh

Issue 1154004: Add support for alpha and beta versions of karmic in install-build-deps.sh (Closed)
Patch Set: add lucid Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \ 109 test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \
110 sudo mv /usr/bin/ld /usr/bin/ld.orig 110 sudo mv /usr/bin/ld /usr/bin/ld.orig
111 sudo strip /usr/local/gold/bin/ld 111 sudo strip /usr/local/gold/bin/ld
112 sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold 112 sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold
113 sudo ln -fs /usr/bin/ld.gold /usr/bin/ld 113 sudo ln -fs /usr/bin/ld.gold /usr/bin/ld
114 else 114 else
115 echo "make install failed, not installing gold" 115 echo "make install failed, not installing gold"
116 fi 116 fi
117 } 117 }
118 118
119 if ! egrep -q 'Ubuntu (8\.04|8\.10|9\.04|9\.10)' /etc/issue; then 119 if ! egrep -q 'Ubuntu (8\.04|8\.10|9\.04|9\.10|karmic|lucid)' /etc/issue; then
120 echo "Only Ubuntu 8.04, 8.10, 9.04, and 9.10 are currently supported" >&2 120 echo "Only Ubuntu 8.04, 8.10, 9.04, and 9.10 are currently supported" >&2
121 exit 1 121 exit 1
122 fi 122 fi
123 123
124 if ! uname -m | egrep -q "i686|x86_64"; then 124 if ! uname -m | egrep -q "i686|x86_64"; then
125 echo "Only x86 architectures are currently supported" >&2 125 echo "Only x86 architectures are currently supported" >&2
126 exit 126 exit
127 fi 127 fi
128 128
129 if [ "x$(id -u)" != x0 ]; then 129 if [ "x$(id -u)" != x0 ]; then
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 sed -e 's/[.]so[.][0-9].*/.so/' | 432 sed -e 's/[.]so[.][0-9].*/.so/' |
433 sort -u); do 433 sort -u); do
434 [ "x${i##*/}" = "xld-linux.so" ] && continue 434 [ "x${i##*/}" = "xld-linux.so" ] && continue
435 [ -r "$i" ] && continue 435 [ -r "$i" ] && continue
436 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 436 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
437 sort -n | tail -n 1)" 437 sort -n | tail -n 1)"
438 [ -r "$i.$j" ] || continue 438 [ -r "$i.$j" ] || continue
439 sudo ln -s "${i##*/}.$j" "$i" 439 sudo ln -s "${i##*/}.$j" "$i"
440 done 440 done
441 fi 441 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698