summaryrefslogtreecommitdiff
path: root/data/cydia
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-14 12:56:35 +0000
committerJay Freeman <saurik@saurik.com>2008-02-14 12:56:35 +0000
commit459c9779557e19437de4a02f6311c322989228b3 (patch)
tree4bedd4eed92b19f84f49b1ab044517791361d772 /data/cydia
parentab8e79b895e43a31d93efb8402d5ece4243780af (diff)
I'm getting sick of these symlink issues.
git-svn-id: http://svn.telesphoreo.org/trunk@87 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/cydia')
-rw-r--r--data/cydia/make.sh3
-rw-r--r--data/cydia/symlink.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/data/cydia/make.sh b/data/cydia/make.sh
index bc84601d2..36f51ad89 100644
--- a/data/cydia/make.sh
+++ b/data/cydia/make.sh
@@ -15,3 +15,6 @@ pkg: cp -a CydiaSettings.bundle /System/Library/PreferenceBundles
pkg: mkdir -p /usr/libexec/cydia
pkg: cp -a %/install.sh /usr/libexec/cydia
+
+pkg: arm-apple-darwin-gcc -o symlink %/symlink.c
+pkg: cp -a symlink /usr/libexec/cydia
diff --git a/data/cydia/symlink.c b/data/cydia/symlink.c
new file mode 100644
index 000000000..7ba730d8d
--- /dev/null
+++ b/data/cydia/symlink.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+
+int main(int argc, const char *argv[]) {
+ unlink(argv[2]);
+ symlink(argv[1], argv[2]);
+ return 0;
+}