mirror of
https://github.com/zhigang1992/ReactiveCocoa.git
synced 2026-01-12 22:51:30 +08:00
40 lines
1.0 KiB
Bash
Executable File
40 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")/../ReactiveCocoaFramework"
|
|
SCRIPT_DIR=../script
|
|
|
|
##
|
|
## Configuration Variables
|
|
##
|
|
|
|
# The build configuration to use.
|
|
if [ -z "$XCCONFIGURATION" ]
|
|
then
|
|
XCCONFIGURATION="Release"
|
|
fi
|
|
|
|
# A bootstrap script to run before building.
|
|
#
|
|
# If this file does not exist, it is not considered an error.
|
|
BOOTSTRAP="$SCRIPT_DIR/bootstrap"
|
|
|
|
# Extra build settings to pass to xcodebuild.
|
|
XCODEBUILD_SETTINGS="TEST_AFTER_BUILD=YES"
|
|
|
|
##
|
|
## Build Process
|
|
##
|
|
|
|
if [ -f "$BOOTSTRAP" ]
|
|
then
|
|
echo "*** Bootstrapping..."
|
|
bash "$BOOTSTRAP" || exit $?
|
|
fi
|
|
|
|
echo "*** Cleaning all targets..."
|
|
xcodebuild -alltargets clean OBJROOT="$PWD/build" SYMROOT="$PWD/build" $XCODEBUILD_SETTINGS
|
|
|
|
echo "*** Building..."
|
|
xcodebuild -configuration "$XCCONFIGURATION" -scheme ReactiveCocoa build OBJROOT="$PWD/build" SYMROOT="$PWD/build" $XCODEBUILD_SETTINGS || exit $?
|
|
xcodebuild -configuration "$XCCONFIGURATION" -sdk iphonesimulator -scheme ReactiveCocoa-iOS build OBJROOT="$PWD/build" SYMROOT="$PWD/build" $XCODEBUILD_SETTINGS || exit $?
|