1
0
mirror of https://github.com/golang/go synced 2024-11-19 17:14:44 -07:00

build: fix sudo.bash.

R=rsc, balasanjay, rsc
CC=golang-dev
https://golang.org/cl/5630051
This commit is contained in:
David Symonds 2012-02-05 14:50:38 +11:00
parent 8f0602fb07
commit cdfd5b2bed

View File

@ -4,7 +4,6 @@
# license that can be found in the LICENSE file.
set -e
. ./env.bash
case "`uname`" in
Darwin)
@ -18,12 +17,13 @@ if [[ ! -d /usr/local/bin ]]; then
exit 2
fi
cd $(dirname $0)
for i in prof cov
do
# Remove old binaries if present
sudo rm -f /usr/local/bin/6$i
# Install new binaries
sudo cp "$GOROOT"/bin/tool/$i /usr/local/bin/go$i
sudo cp ../bin/tool/$i /usr/local/bin/go$i
sudo chgrp procmod /usr/local/bin/go$i
sudo chmod g+s /usr/local/bin/go$i
done