]>
Commit | Line | Data |
---|---|---|
427c49bc A |
1 | #!/bin/zsh -e |
2 | ||
3 | if [ ! -d "Security.xcodeproj" ]; then | |
4 | echo "Not in correct directory to build; currently in " `pwd` | |
5 | exit 2 | |
6 | fi | |
7 | ||
8 | localbase=`basename $PWD` | |
9 | target=${1-world} | |
10 | config=${2-Release} | |
11 | roots=/var/tmp | |
12 | project=Security | |
13 | ||
4d3cab3d | 14 | ~rc/bin/buildit . --rootsDirectory=/var/tmp -noverify -release iOS -project $project -archive -dsymsInDstroot \ |
427c49bc A |
15 | -target $target \ |
16 | -configuration $config || { echo 'build failed' ; exit 1; } | |
17 | ||
18 | rootsDir=/var/tmp/${project}_${localbase}.roots | |
19 | buildRoots=$rootsDir/BuildRecords/${project}_install | |
20 | ||
21 | roottar=/tmp/security.roots.tgz | |
22 | symtar=/tmp/security.syms.tgz | |
23 | srctar=/tmp/security.src.tgz | |
24 | ||
25 | cp $rootsDir/Archives/Security_${localbase}_DSTROOT.tar.gz $roottar | |
26 | ||
27 | tar -czvf $symtar -C ${buildRoots}/Symbols . &> /dev/null | |
28 | tar -czvf $srctar -C ${rootsDir}/Sources/${project} . &> /dev/null | |
29 | ||
30 | echo "now run" | |
31 | echo " ~/bin/install_on_devices" |