| # 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. |
| echo "Attempting to locate needed utilities..." |
| PM=/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker |
| echo "Could not find PackageMaker; aborting!" |
| echo " PackageMaker : ${PM}" |
| # hdiutil. If this doesn't exist, your OS X installation is horribly borked, |
| # but let's check anyway... |
| if which hdiutil > /dev/null; then |
| echo " hdiutil : ${HDIUTIL}" |
| if which osascript > /dev/null; then |
| OSASCRIPT=`which osascript` |
| echo " osascript : ${OSASCRIPT}" |