]>
Commit | Line | Data |
---|---|---|
a5b37447 JF |
1 | #!/bin/bash |
2 | ||
3 | set -e -x | |
4 | ||
50e2a077 | 5 | sudo xcode-select --switch /Applications/Xcode-4.6.3.app |
4374152f JF |
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 . | |
a5b37447 JF |
8 | |
9 | rm -rf _ | |
10 | mkdir -p _/usr/bin | |
9b4ef9a5 | 11 | cp -a ldid.arm _/usr/bin/ldid |
a5b37447 JF |
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 |