#!/usr/local/bin/bash set -e ## bash 3 does not work for this code #if [ -z "$IN_DASH" ]; then # if command -v dash >/dev/null; then # export IN_DASH=1 # exec dash "$0" "$@" # else # echo >&2 "please install dash from homebrew or macports to run this script" # exit 1 # fi #fi target_bits=64 target_cpu=x86_64 case "$1" in -64) shift ;; -32) target_bits=32 target_cpu=i386 shift ;; esac export BUILD_ROOT="$HOME/vbam-build-mac-${target_bits}bit" BUILD_ENV=$(cat <