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