Devon H. O'Dell | 553be84 | 2009-11-14 15:29:09 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Russ Cox | 6b7dd4c | 2008-11-18 10:08:46 -0800 | [diff] [blame] | 2 | # Copyright 2009 The Go Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style |
| 4 | # license that can be found in the LICENSE file. |
| 5 | |
Russ Cox | da392d9 | 2010-08-18 10:08:49 -0400 | [diff] [blame] | 6 | set -e |
| 7 | . ./env.bash |
| 8 | |
Russ Cox | 6b7dd4c | 2008-11-18 10:08:46 -0800 | [diff] [blame] | 9 | case "`uname`" in |
| 10 | Darwin) |
| 11 | ;; |
| 12 | *) |
| 13 | exit 0 |
| 14 | esac |
| 15 | |
Rob Pike | 0009301 | 2009-11-12 23:19:12 -0800 | [diff] [blame] | 16 | for i in prof cov |
Russ Cox | 6b7dd4c | 2008-11-18 10:08:46 -0800 | [diff] [blame] | 17 | do |
Sergio Luis O. B. Correia | 6fc8207 | 2009-11-23 17:32:51 -0800 | [diff] [blame] | 18 | sudo cp "$GOROOT"/src/cmd/$i/6$i /usr/local/bin/6$i |
Russ Cox | 6b7dd4c | 2008-11-18 10:08:46 -0800 | [diff] [blame] | 19 | sudo chgrp procmod /usr/local/bin/6$i |
| 20 | sudo chmod g+s /usr/local/bin/6$i |
| 21 | done |