mirror of
https://github.com/kean/Pulse.git
synced 2026-04-30 21:02:27 +00:00
27 lines
445 B
Bash
Executable File
27 lines
445 B
Bash
Executable File
#!/bin/sh
|
|
|
|
scheme="Pulse"
|
|
|
|
while getopts "d:" opt; do
|
|
case $opt in
|
|
d) destinations+=("$OPTARG");;
|
|
#...
|
|
esac
|
|
done
|
|
shift $((OPTIND -1))
|
|
|
|
echo "destinations = ${destinations[@]}"
|
|
|
|
set -o pipefail
|
|
xcodebuild -version
|
|
|
|
for dest in "${destinations[@]}"; do
|
|
echo "Building for destination: $dest"
|
|
xcodebuild build -scheme $scheme -destination "$dest" | xcpretty;
|
|
if [ $? -ne 0 ]; then
|
|
exit $?
|
|
fi
|
|
done
|
|
|
|
exit $?
|