The Go Programming Language

Text file src/sudo.bash

     1	#!/usr/bin/env bash
     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	
     6	set -e
     7	. ./env.bash
     8	
     9	case "`uname`" in
    10	Darwin)
    11		;;
    12	*)
    13		exit 0
    14	esac
    15	
    16	for i in prof cov
    17	do
    18		sudo cp "$GOROOT"/src/cmd/$i/6$i /usr/local/bin/6$i
    19		sudo chgrp procmod /usr/local/bin/6$i
    20		sudo chmod g+s /usr/local/bin/6$i
    21	done

release.r60.3. Except as noted, this content is licensed under a Creative Commons Attribution 3.0 License.