]> git.saurik.com Git - cydia.git/commitdiff
New mobilesubstrate packages include an absolute symlink.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Feb 2011 11:01:13 +0000 (03:01 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:17 +0000 (02:41 -0800)
sysroot.sh

index 819d8b72a23e48698e8b8947c3d72e9c00541cda..77ad994bce7e63368d555130b18aabc771f5dca2 100755 (executable)
@@ -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