From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- misc/dist/darwin/scripts/postinstall | 7 +------ misc/dist/darwin/scripts/preinstall | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) mode change 100644 => 100755 misc/dist/darwin/scripts/postinstall create mode 100644 misc/dist/darwin/scripts/preinstall (limited to 'misc/dist/darwin/scripts') diff --git a/misc/dist/darwin/scripts/postinstall b/misc/dist/darwin/scripts/postinstall old mode 100644 new mode 100755 index 3748721c7..4410a3004 --- a/misc/dist/darwin/scripts/postinstall +++ b/misc/dist/darwin/scripts/postinstall @@ -9,14 +9,9 @@ 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 +if [ -d "$XCODE_MISC_DIR" ]; then echo " XCode" cp $GOROOT/misc/xcode/* $XCODE_MISC_DIR fi diff --git a/misc/dist/darwin/scripts/preinstall b/misc/dist/darwin/scripts/preinstall new file mode 100644 index 000000000..4cdaaa4bc --- /dev/null +++ b/misc/dist/darwin/scripts/preinstall @@ -0,0 +1,8 @@ +#!/bin/bash + +GOROOT=/usr/local/go + +echo "Removing previous installation" +if [ -d $GOROOT ]; then + rm -r $GOROOT +fi -- cgit v1.2.3