#! /bin/ksh
## $Id: build.sh 224 2011-08-13 20:39:45Z stuart $
##
## Author: Stuart Connolly (stuconnolly.com)
## Copyright (c) 2011 Stuart Connolly. All rights reserved.
##
## Paramters: <none>
##
## Description: Generic build script. This script is intended to replace entering lots of code into Xcode's
## 'Run Scripts' build phase to make it easier to work with. As such this script can only be
## run by Xcode.
# Add build/bundle version
${SRCROOT}/Scripts/build-version.pl
# Build deployment if required
if [ "$CONFIGURATION" == 'Distribution' ]
then
${SRCROOT}/Scripts/build-release.sh -s -a bzip2 -u
fi
# Deploy to destination
${SRCROOT}/Scripts/deploy.sh
exit 0