mirror of
https://github.com/golang/go
synced 2024-11-22 03:24:41 -07:00
build: fix sudo.bash.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5647063
This commit is contained in:
parent
9f333170bf
commit
95902d10d2
@ -17,13 +17,14 @@ if [[ ! -d /usr/local/bin ]]; then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
eval $(go tool dist env)
|
||||||
cd $(dirname $0)
|
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 ../bin/tool/$i /usr/local/bin/go$i
|
sudo cp $GOTOOLDIR/$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
|
||||||
|
Loading…
Reference in New Issue
Block a user