]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix sudo.bash.
authorDavid Symonds <dsymonds@golang.org>
Sun, 5 Feb 2012 03:50:38 +0000 (14:50 +1100)
committerDavid Symonds <dsymonds@golang.org>
Sun, 5 Feb 2012 03:50:38 +0000 (14:50 +1100)
R=rsc, balasanjay, rsc
CC=golang-dev
https://golang.org/cl/5630051

src/sudo.bash

index 369505d2f644e6566aa74f7fd8e135f304fa9acb..3e1507b4e89016132906742e6262fde186412737 100755 (executable)
@@ -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