From 2d8d68dc5e168b0c59c06026ef7d7ae9ee3d45be Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 25 Apr 2013 23:22:37 -0400 Subject: [PATCH] Fixed: Jakefile for XcodeCapp did not install symlink correctly. FILE.exists was being used to test for the existence of the symlink in /Applications, but that doesn't work. The correct way is to use ln -sfh. Note that the -h was missing before, which prevents an existing target symlink from being followed, which is why the symlink would end up inside XcodeCapp.app. --- Tools/XcodeCapp/Jakefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Tools/XcodeCapp/Jakefile b/Tools/XcodeCapp/Jakefile index 4ba652305..ce7ad7ae8 100644 --- a/Tools/XcodeCapp/Jakefile +++ b/Tools/XcodeCapp/Jakefile @@ -22,10 +22,7 @@ task ("build", function() cp_r(FILE.join("build", "Release", "XcodeCapp.app"), supportPath); FILE.chmod(FILE.join(supportPath, "Contents", "MacOS", "XcodeCapp"), 0755); - if (FILE.exists(installPath)) - FILE.remove(installPath); - - OS.system(["ln", "-s", supportPath, installPath]); + OS.system(["/bin/ln", "-sfh", supportPath, installPath]); } else {