Commit cdfd5b2b authored by David Symonds's avatar David Symonds

build: fix sudo.bash.

R=rsc, balasanjay, rsc
CC=golang-dev
https://golang.org/cl/5630051
parent 8f0602fb
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
set -e set -e
. ./env.bash
case "`uname`" in case "`uname`" in
Darwin) Darwin)
...@@ -18,12 +17,13 @@ if [[ ! -d /usr/local/bin ]]; then ...@@ -18,12 +17,13 @@ if [[ ! -d /usr/local/bin ]]; then
exit 2 exit 2
fi fi
cd $(dirname $0)
for i in prof cov for i in prof cov
do do
# Remove old binaries if present # Remove old binaries if present
sudo rm -f /usr/local/bin/6$i sudo rm -f /usr/local/bin/6$i
# Install new binaries # 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 chgrp procmod /usr/local/bin/go$i
sudo chmod g+s /usr/local/bin/go$i sudo chmod g+s /usr/local/bin/go$i
done done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment