forked from SwiftJava/SwiftJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenpkg.sh
More file actions
executable file
·24 lines (19 loc) · 703 Bytes
/
genpkg.sh
File metadata and controls
executable file
·24 lines (19 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Build until all overrides are captured in build.log and there are no errors
#
cd "$(dirname "$0")" &&
XCODEBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
# downloadable from https://support.apple.com/kb/dl1572?locale=en_US
export JAVA_HOME=${JAVA_HOME:-/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home}
for i in $*; do
./genswift.sh $i $JAVA_HOME/jre/lib/rt.jar &&
./overrides.pl $i &&
while true; do
($XCODEBUILD SYMROOT=/tmp -config Debug -target examples -project SwiftJava.xcodeproj; STATUS=$?) | tee -a $i/build.log
./overrides.pl $i
if [[ $STATUS == 0 ]]; then
exit
fi
done
done