2009-11-14 16:29:09 -07:00
|
|
|
#!/usr/bin/env bash
|
2008-11-18 11:08:46 -07:00
|
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2010-08-18 08:08:49 -06:00
|
|
|
set -e
|
|
|
|
. ./env.bash
|
|
|
|
|
2008-11-18 11:08:46 -07:00
|
|
|
case "`uname`" in
|
|
|
|
Darwin)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 0
|
|
|
|
esac
|
|
|
|
|
2009-11-13 00:19:12 -07:00
|
|
|
for i in prof cov
|
2008-11-18 11:08:46 -07:00
|
|
|
do
|
2009-11-23 18:32:51 -07:00
|
|
|
sudo cp "$GOROOT"/src/cmd/$i/6$i /usr/local/bin/6$i
|
2008-11-18 11:08:46 -07:00
|
|
|
sudo chgrp procmod /usr/local/bin/6$i
|
|
|
|
sudo chmod g+s /usr/local/bin/6$i
|
|
|
|
done
|