From 505c19580e0f43fe5224431459cacb7c21edd93d Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Fri, 6 Apr 2012 15:14:11 +0200 Subject: Imported Upstream version 1 --- misc/osx/scripts/postinstall | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 misc/osx/scripts/postinstall (limited to 'misc/osx/scripts') diff --git a/misc/osx/scripts/postinstall b/misc/osx/scripts/postinstall new file mode 100644 index 000000000..3748721c7 --- /dev/null +++ b/misc/osx/scripts/postinstall @@ -0,0 +1,23 @@ +#!/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 + -- cgit v1.2.3