#!/bin/sh # $Id: package-app.sh 335 2010-09-03 00:07:00Z chrisy $ conf="$1" [ "$conf" = "AdHoc" ] && conf="Ad Hoc" if [ "$conf" != "Debug" -a "$conf" != "Release" -a "$conf" != "Ad Hoc" ]; then echo "ERROR: Invalid configuration. Use Debug, Release or Ad Hoc." exit 1 fi cd $(dirname $0)/../ || exit 1 xcodebuild -configuration "$conf" || exit 1 exec $HOME/bin/package-app 'ABC of the Sea' 'ABC of the Sea' "$conf"