]> Cypherpunks repositories - gostls13.git/commit
dist: fix postinstall script for Darwin
authorAlexandre Normand <alexandre.normand@gmail.com>
Mon, 15 Jul 2013 00:52:38 +0000 (10:52 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 15 Jul 2013 00:52:38 +0000 (10:52 +1000)
commitbbb51ae3a9dc8da80d9f48c122d8a75aead69c09
tree0157bcb55e1f053aeaccd84b6434e78dce758569
parent9653e2821e6c94223d9fdc84756cb4cbef4815ec
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
misc/dist/darwin/scripts/postinstall