summaryrefslogtreecommitdiff
path: root/sysroot.sh
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-25 03:01:13 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:17 -0800
commitf2229be25e593028b45150d92faa412d63797b89 (patch)
tree61fa62295dbe18f9ccc9de78bab6ce5552c81c68 /sysroot.sh
parentde1ace71a801664ca0ed2812935fa63997eea18b (diff)
New mobilesubstrate packages include an absolute symlink.
Diffstat (limited to 'sysroot.sh')
-rwxr-xr-xsysroot.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysroot.sh b/sysroot.sh
index 819d8b7..77ad994 100755
--- a/sysroot.sh
+++ b/sysroot.sh
@@ -44,6 +44,12 @@ wget -qO- "${repository}dists/${distribution}/${component}/binary-${architecture
rm -f *.deb
+if substrate=$(readlink usr/include/substrate.h); then
+ if [[ ${substrate} == /* ]]; then
+ ln -sf "../..${substrate}" usr/include/substrate.h
+ fi
+fi
+
mkdir -p usr/include
cd usr/include