1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:27:56 -07:00
go/misc/dist/darwin
Alexandre Normand bbb51ae3a9 dist: fix postinstall script for Darwin
The postinstall script causes the installation to fail because the last
step that copies files for Xcode is broken. Two details can cause the
command to fail:
  1. The XCODE_MISC_DIR value has a space. Without quotes in the cp
     command, cp will just complain that this is an invalid syntax.
  2. The source of the cp is a directory with two subdirectories.
     We actually want the files for either Xcode 3 or Xcode 4 to be copied.
     Using xcodebuild -version, we check for the Xcode version and
     select which of xcode/3/* or xcode/4/* should be the source
     of the copy.

Fixes #5874.

R=golang-dev, minux.ma, adg
CC=golang-dev
https://golang.org/cl/10893044
2013-07-15 10:52:38 +10:00
..
etc/paths.d misc/dist: new hierarchy for binary distribution packaging scripts 2012-02-09 11:15:14 +11:00
Resources misc/dist: more gophers for OS X installer 2012-04-24 09:24:19 -07:00
scripts dist: fix postinstall script for Darwin 2013-07-15 10:52:38 +10:00
Distribution misc/dist: handle previous installation 2013-02-28 16:09:48 +11:00