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

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

Issue 174372: Add license information to our shell scripts. (Closed)
Patch Set: Created 11 years, 3 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 | chrome/tools/build/linux/sed.sh » ('j') | 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.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
3 # Script to install everything needed to build chromium (well, ideally, anyway) 7 # Script to install everything needed to build chromium (well, ideally, anyway)
4 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
5 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit
6 10
7 install_gold() { 11 install_gold() {
8 # Gold is optional; it's a faster replacement for ld, 12 # Gold is optional; it's a faster replacement for ld,
9 # and makes life on 2GB machines much more pleasant. 13 # and makes life on 2GB machines much more pleasant.
10 14
11 # First make sure root can access this directory, as that's tripped up some fo lks. 15 # First make sure root can access this directory, as that's tripped up some fo lks.
12 if sudo touch xyz.$$ 16 if sudo touch xyz.$$
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 sed -e 's/[.]so[.][0-9].*/.so/' | 361 sed -e 's/[.]so[.][0-9].*/.so/' |
358 sort -u); do 362 sort -u); do
359 [ "x${i##*/}" = "xld-linux.so" ] && continue 363 [ "x${i##*/}" = "xld-linux.so" ] && continue
360 [ -r "$i" ] && continue 364 [ -r "$i" ] && continue
361 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 365 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
362 sort -n | tail -n 1)" 366 sort -n | tail -n 1)"
363 [ -r "$i.$j" ] || continue 367 [ -r "$i.$j" ] || continue
364 sudo ln -s "${i##*/}.$j" "$i" 368 sudo ln -s "${i##*/}.$j" "$i"
365 done 369 done
366 fi 370 fi
OLDNEW
« no previous file with comments | « no previous file | chrome/tools/build/linux/sed.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698