Skip to content

Commit

Permalink
allow fullbuild.sh script to be run from other directories, reduce nu…
Browse files Browse the repository at this point in the history
…mber of xcodebuild commends by using ‘-alltargets’
  • Loading branch information
richardeakin committed Feb 20, 2015
1 parent 7609f93 commit e37265a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions xcode/fullbuild.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

xcrun xcodebuild -project cinder.xcodeproj -target cinder -configuration Release $@
xcrun xcodebuild -project cinder.xcodeproj -target cinder_iphone -configuration Release $@
xcrun xcodebuild -project cinder.xcodeproj -target cinder_iphone_sim -configuration Release -sdk iphonesimulator $@
xcrun xcodebuild -project cinder.xcodeproj -target cinder -configuration Debug $@
xcrun xcodebuild -project cinder.xcodeproj -target cinder_iphone -configuration Debug $@
xcrun xcodebuild -project cinder.xcodeproj -target cinder_iphone_sim -configuration Debug -sdk iphonesimulator $@
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
CINDER_XCODEPROJ="${CURRENT_DIR}/cinder.xcodeproj"

xcrun xcodebuild -project ${CINDER_XCODEPROJ} -alltargets -configuration Release $@
xcrun xcodebuild -project ${CINDER_XCODEPROJ} -alltargets -configuration Debug $@

0 comments on commit e37265a

Please sign in to comment.