]> Cypherpunks repositories - gostls13.git/commit
misc/dist: require 10.6 or later for OS X .pkgs
authorMikkel Krautz <mikkel@krautz.dk>
Mon, 23 Apr 2012 21:56:03 +0000 (14:56 -0700)
committerAndrew Gerrand <adg@golang.org>
Mon, 23 Apr 2012 21:56:03 +0000 (14:56 -0700)
commitc17d09a65774e03376fc1a7fd536646297f408cb
tree2e3cb3f79023c465cfea8364a1ac5d170f6e3def
parent5583060c4cc16951d6a4d43daa73519bbd2ba8ee
misc/dist: require 10.6 or later for OS X .pkgs

This changes the misc/dist program to generate OS X
packages using pkgbuild and productbuild.

The productbuild utility makes it easy to generate
packages with a custom Distribution file.  This allows
us to add an installcheck script that presents a
friendly message to users who are running on an old
version of Mac OS X.

The change also fixes a few issues with the
postinstall script:

 - In-repo version of the script has been made
   executable. Installers generated using the new
   tools couldn't execute it otherwise.

 - It now uses -d for checking for the existence
   of the Xcode specs directory.

 - The call to sudo.bash has been dropped since cov
   and prof aren't bundled with the binary
   distributions.

Fixes #3455.

Tested on 10.5.8, 10.6.0, 10.6.8 and 10.7.3.

R=adg, golang-dev
CC=golang-dev
https://golang.org/cl/5987044
misc/dist/bindist.go
misc/dist/darwin/Distribution [new file with mode: 0644]
misc/dist/darwin/scripts/postinstall [changed mode: 0644->0755]