]> git.saurik.com Git - ldid.git/blob - ios.sh
Maintain fat_arch.align when allocating fat files.
[ldid.git] / ios.sh
1 #!/bin/bash
2
3 set -e -x
4
5 sudo xcode-select --switch /Applications/Xcode-4.6.3.app
6 cycc -i2.0 -oldid.arm -- -c -std=c++11 ldid.cpp -I.
7 cycc -i2.0 -oldid.arm -- ldid.arm -x c sha1.c lookup2.c -I .
8
9 rm -rf _
10 mkdir -p _/usr/bin
11 cp -a ldid.arm _/usr/bin/ldid
12 mkdir -p _/DEBIAN
13 ./control.sh _ >_/DEBIAN/control
14 mkdir -p debs
15 ln -sf debs/ldid_$(./version.sh)_iphoneos-arm.deb ldid.deb
16 dpkg-deb -b _ ldid.deb
17 readlink ldid.deb