dev.stuconnolly.com / svn / safaritabs

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