From 8a39ee361feb9bf46d728ff1ba4f07ca1d9610b1 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 19 Jun 2014 09:22:53 +0200 Subject: Imported Upstream version 1.3 --- misc/makerelease/darwin/Distribution | 32 ++++++++++++++++++++++++++++ misc/makerelease/darwin/Resources/bg.png | Bin 0 -> 11466 bytes misc/makerelease/darwin/etc/paths.d/go | 1 + misc/makerelease/darwin/scripts/postinstall | 10 +++++++++ misc/makerelease/darwin/scripts/preinstall | 8 +++++++ 5 files changed, 51 insertions(+) create mode 100644 misc/makerelease/darwin/Distribution create mode 100644 misc/makerelease/darwin/Resources/bg.png create mode 100644 misc/makerelease/darwin/etc/paths.d/go create mode 100755 misc/makerelease/darwin/scripts/postinstall create mode 100755 misc/makerelease/darwin/scripts/preinstall (limited to 'misc/makerelease/darwin') diff --git a/misc/makerelease/darwin/Distribution b/misc/makerelease/darwin/Distribution new file mode 100644 index 000000000..8b764b69f --- /dev/null +++ b/misc/makerelease/darwin/Distribution @@ -0,0 +1,32 @@ + + + Go + + + + + + + + + + + + com.googlecode.go.pkg + diff --git a/misc/makerelease/darwin/Resources/bg.png b/misc/makerelease/darwin/Resources/bg.png new file mode 100644 index 000000000..c3d8ea93a Binary files /dev/null and b/misc/makerelease/darwin/Resources/bg.png differ diff --git a/misc/makerelease/darwin/etc/paths.d/go b/misc/makerelease/darwin/etc/paths.d/go new file mode 100644 index 000000000..532e5f936 --- /dev/null +++ b/misc/makerelease/darwin/etc/paths.d/go @@ -0,0 +1 @@ +/usr/local/go/bin diff --git a/misc/makerelease/darwin/scripts/postinstall b/misc/makerelease/darwin/scripts/postinstall new file mode 100755 index 000000000..13f5bff9b --- /dev/null +++ b/misc/makerelease/darwin/scripts/postinstall @@ -0,0 +1,10 @@ +#!/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 . diff --git a/misc/makerelease/darwin/scripts/preinstall b/misc/makerelease/darwin/scripts/preinstall new file mode 100755 index 000000000..4cdaaa4bc --- /dev/null +++ b/misc/makerelease/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