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

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

Issue 164389: Fix a typo in install-build-deps.sh. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | Annotate | Revision Log
« 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 # 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 sudo apt-get update 164 sudo apt-get update
165 165
166 # We initially run "apt-get" with the --reinstall option and parse its output. 166 # We initially run "apt-get" with the --reinstall option and parse its output.
167 # This way, we can find all the packages that need to be newly installed 167 # This way, we can find all the packages that need to be newly installed
168 # without accidentally promoting any packages from "auto" to "manual". 168 # without accidentally promoting any packages from "auto" to "manual".
169 # We then re-run "apt-get" with just the list of missing packages. 169 # We then re-run "apt-get" with just the list of missing packages.
170 echo "Finding missing packages..." 170 echo "Finding missing packages..."
171 packages="${dev_list} ${lib_list} ${dbg_list}" 171 packages="${dev_list} ${lib_list} ${dbg_list}"
172 if [ "$(uname -m)" = "x86_64" ]; then 172 if [ "$(uname -m)" = "x86_64" ]; then
173 packages+=" ${cmp_list})" 173 packages+=" ${cmp_list}"
174 fi 174 fi
175 # Intentially leaving $packages unquoted so it's more readable. 175 # Intentially leaving $packages unquoted so it's more readable.
176 echo "Packages required: " $packages 176 echo "Packages required: " $packages
177 echo 177 echo
178 new_list_cmd="sudo apt-get install --reinstall $(echo $packages)" 178 new_list_cmd="sudo apt-get install --reinstall $(echo $packages)"
179 if new_list="$(yes n | LANG=C $new_list_cmd)" 179 if new_list="$(yes n | LANG=C $new_list_cmd)"
180 then 180 then
181 # We probably never hit this following line. 181 # We probably never hit this following line.
182 echo "No missing packages, and the packages are up-to-date." 182 echo "No missing packages, and the packages are up-to-date."
183 elif [ $? -eq 1 ] 183 elif [ $? -eq 1 ]
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 sed -e 's/[.]so[.][0-9].*/.so/' | 357 sed -e 's/[.]so[.][0-9].*/.so/' |
358 sort -u); do 358 sort -u); do
359 [ "x${i##*/}" = "xld-linux.so" ] && continue 359 [ "x${i##*/}" = "xld-linux.so" ] && continue
360 [ -r "$i" ] && continue 360 [ -r "$i" ] && continue
361 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 361 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
362 sort -n | tail -n 1)" 362 sort -n | tail -n 1)"
363 [ -r "$i.$j" ] || continue 363 [ -r "$i.$j" ] || continue
364 sudo ln -s "${i##*/}.$j" "$i" 364 sudo ln -s "${i##*/}.$j" "$i"
365 done 365 done
366 fi 366 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