Do not overwrite ld.orig in install-build-deps.sh.

TBR=dank
BUG=none
TEST=Install gold through install-build-deps.sh twice. /usr/bin/ld.orig should still be GNU ld.
Review URL: http://codereview.chromium.org/402047

git-svn-id: http://src.chromium.org/svn/trunk/src/build@32317 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
thestig@chromium.org 2009-11-18 10:58:00 +00:00
Родитель d9a9685b47
Коммит 5fa5b92de1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -82,7 +82,8 @@ __EOF__
# variables. That will go into bootstrap-linux.sh when it's ready.
echo "Installing gold as /usr/bin/ld."
echo "To uninstall, do 'cd /usr/bin; sudo rm ld; sudo mv ld.orig ld'"
test -f /usr/bin/ld && sudo mv /usr/bin/ld /usr/bin/ld.orig
test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \
sudo mv /usr/bin/ld /usr/bin/ld.orig
sudo strip /usr/local/gold/bin/ld
sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold
sudo ln -fs /usr/bin/ld.gold /usr/bin/ld