Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Move derived data from ~ to ~/ASDKDerivedData
  • Loading branch information
maicki committed Feb 10, 2017
commit 84b9fe448b03faabd0cc583ed885861ccead3d70
14 changes: 8 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function trap_handler() {
}
trap trap_handler INT TERM EXIT

DERIVED_DATA_PATH="~/ASDKDerivedData"
[ -d DERIVED_DATA_PATH ] || mkdir DERIVED_DATA_PATH

MODE="$1"

Expand Down Expand Up @@ -74,8 +76,8 @@ if [ "$MODE" = "examples" ]; then
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
-derivedDataPath ~/ \
clean build | xcpretty $FORMATTER
-derivedDataPath "$DERIVED_DATA_PATH" \
build | xcpretty $FORMATTER
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
local_repo=`pwd`
Expand Down Expand Up @@ -120,7 +122,7 @@ if [ "$MODE" = "examples-pt1" ]; then
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
-derivedDataPath ~/ \
-derivedDataPath "$DERIVED_DATA_PATH" \
build | xcpretty $FORMATTER
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
Expand Down Expand Up @@ -166,7 +168,7 @@ if [ "$MODE" = "examples-pt2" ]; then
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
-derivedDataPath ~/ \
-derivedDataPath "$DERIVED_DATA_PATH" \
build | xcpretty $FORMATTER
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
Expand Down Expand Up @@ -212,7 +214,7 @@ if [ "$MODE" = "examples-pt3" ]; then
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
-derivedDataPath ~/ \
-derivedDataPath "$DERIVED_DATA_PATH" \
build | xcpretty $FORMATTER
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
Expand Down Expand Up @@ -258,7 +260,7 @@ if [ "$MODE" = "examples-extra" ]; then
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
-derivedDataPath ~/ \
-derivedDataPath "$DERIVED_DATA_PATH" \
build | xcpretty $FORMATTER
elif [ -f "${example}/Cartfile" ]; then
echo "Using Carthage"
Expand Down