]> git.saurik.com Git - ldid.git/blame - ios.sh
Maintain fat_arch.align when allocating fat files.
[ldid.git] / ios.sh
CommitLineData
a5b37447
JF
1#!/bin/bash
2
3set -e -x
4
50e2a077 5sudo xcode-select --switch /Applications/Xcode-4.6.3.app
4374152f
JF
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 .
a5b37447
JF
8
9rm -rf _
10mkdir -p _/usr/bin
9b4ef9a5 11cp -a ldid.arm _/usr/bin/ldid
a5b37447
JF
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