From 8d210100a571a23a65391b3f473dcd9a8a993c40 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 15 Sep 2011 16:41:52 -0700 Subject: [PATCH] Fix for symlink creation sometimes failing. --- Tools/xcodecapp-cocoa/Jakefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tools/xcodecapp-cocoa/Jakefile b/Tools/xcodecapp-cocoa/Jakefile index e0997b750..18becd73d 100644 --- a/Tools/xcodecapp-cocoa/Jakefile +++ b/Tools/xcodecapp-cocoa/Jakefile @@ -22,9 +22,7 @@ task ("build", function() cp_r(FILE.join("build", "Release", "xcodecapp-cocoa.app"), supportPath); FILE.chmod(FILE.join(supportPath, "Contents", "MacOS", "xcodecapp-cocoa"), 0755); - if (FILE.exists(installPath)) - OS.system(["rm", "-f", installPath]); - FILE.symlink(supportPath, installPath); + OS.system(["ln", "-sf", supportPath, installPath]); } else {