Fix build path when $CAPP_BUILD not defined.

This commit is contained in:
cncolder
2011-04-19 09:14:00 +08:00
parent c4fb9ccc17
commit 229e43f20c
+3 -1
View File
@@ -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