From 229e43f20c1eaaa703c04bb95b3479e7dd2eb8e7 Mon Sep 17 00:00:00 2001 From: cncolder Date: Tue, 19 Apr 2011 09:14:00 +0800 Subject: [PATCH] Fix build path when $CAPP_BUILD not defined. --- Tools/fontinfo/Jakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/fontinfo/Jakefile b/Tools/fontinfo/Jakefile index 4ab6d6c6e..04b90edb4 100644 --- a/Tools/fontinfo/Jakefile +++ b/Tools/fontinfo/Jakefile @@ -16,7 +16,9 @@ task ("build", function() else args = "-sdk macosx " + args; - if (OS.system("xcodebuild " + args)) + var xcodebuild = env.CAPP_BUILD ? "xcodebuild " : "CAPP_BUILD=../../Build xcodebuild "; + + if (OS.system(xcodebuild + args)) OS.exit(1); } else