mirror of
https://github.com/golang/go
synced 2024-11-26 18:06:55 -07:00
d887a31b7c
There's no reason to set GOROOT as the tools will have the path baked into it with GOROOT_FINAL. R=bradfitz, bytbox, gustavo, rsc CC=golang-dev https://golang.org/cl/5576064
24 lines
522 B
Bash
24 lines
522 B
Bash
#!/bin/bash
|
|
|
|
GOROOT=/usr/local/go
|
|
|
|
echo "Fixing permissions"
|
|
cd $GOROOT
|
|
find . -exec chmod ugo+r \{\} \;
|
|
find bin -exec chmod ugo+rx \{\} \;
|
|
find . -type d -exec chmod ugo+rx \{\} \;
|
|
chmod o-w .
|
|
|
|
echo "Fixing debuggers via sudo.bash"
|
|
# setgrp procmod the debuggers (sudo.bash)
|
|
cd $GOROOT/src
|
|
./sudo.bash
|
|
|
|
echo "Installing miscellaneous files:"
|
|
XCODE_MISC_DIR="/Library/Application Support/Developer/Shared/Xcode/Specifications/"
|
|
if [ -f $XCODE_MISC_DIR ]; then
|
|
echo " XCode"
|
|
cp $GOROOT/misc/xcode/* $XCODE_MISC_DIR
|
|
fi
|
|
|