]> Cypherpunks repositories - gostls13.git/commitdiff
misc/osx: remove legacy packaging scripts
authorAndrew Gerrand <adg@golang.org>
Wed, 27 Feb 2013 23:39:09 +0000 (10:39 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 27 Feb 2013 23:39:09 +0000 (10:39 +1100)
These are superseded by the tool at misc/dist.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7420044

misc/osx/README [deleted file]
misc/osx/etc/paths.d/go [deleted file]
misc/osx/package.bash [deleted file]
misc/osx/scripts/postinstall [deleted file]

diff --git a/misc/osx/README b/misc/osx/README
deleted file mode 100644 (file)
index 2408dc4..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Use package.bash to construct a package file (Go.pkg) for installation on OS X.
-
-This script depends on PackageMaker (Developer Tools).
diff --git a/misc/osx/etc/paths.d/go b/misc/osx/etc/paths.d/go
deleted file mode 100644 (file)
index 532e5f9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/usr/local/go/bin
diff --git a/misc/osx/package.bash b/misc/osx/package.bash
deleted file mode 100755 (executable)
index d4ee5f4..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/bash
-# Copyright 2011 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-set -e
-
-if ! test -f ../../src/all.bash; then
-       echo >&2 "package.bash must be run from $GOROOT/misc/osx"
-       exit 1
-fi
-
-echo >&2 "Locating PackageMaker..."
-PM=/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
-if [ ! -x $PM ]; then
-       PM=/Developer$PM
-       if [ ! -x $PM ]; then
-               echo >&2 "could not find PackageMaker; aborting"
-               exit 1
-       fi
-fi
-echo >&2 "  Found: $PM"
-
-BUILD=/tmp/go.build.tmp
-ROOT=`hg root`
-export GOROOT=$BUILD/root/usr/local/go
-export GOROOT_FINAL=/usr/local/go
-
-echo >&2 "Removing old images"
-rm -f *.pkg *.dmg
-
-echo >&2 "Preparing temporary directory"
-rm -rf $BUILD
-mkdir -p $BUILD
-trap "rm -rf $BUILD" 0
-
-echo >&2 "Copying go source distribution"
-mkdir -p $BUILD/root/usr/local
-cp -r $ROOT $GOROOT
-cp -r etc $BUILD/root/etc
-
-pushd $GOROOT > /dev/null
-
-echo >&2 "Detecting version..."
-pushd src > /dev/null
-./make.bash --dist-tool > /dev/null
-../bin/tool/dist version > /dev/null
-popd > /dev/null
-mv VERSION.cache VERSION
-VERSION="$(cat VERSION | awk '{ print $1 }')"
-echo >&2 "  Version: $VERSION"
-
-echo >&2 "Pruning Mercurial metadata"
-rm -rf .hg .hgignore .hgtags
-
-echo >&2 "Building Go"
-pushd src
-./all.bash 2>&1 | sed "s/^/  /" >&2
-popd > /dev/null
-
-popd > /dev/null
-
-echo >&2 "Building package"
-$PM -v -r $BUILD/root -o "go.darwin.$VERSION.pkg" \
-       --scripts scripts \
-       --id com.googlecode.go \
-       --title Go \
-       --version "0.1" \
-       --target "10.5"
diff --git a/misc/osx/scripts/postinstall b/misc/osx/scripts/postinstall
deleted file mode 100644 (file)
index 3748721..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/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
-