From c8951705974a9f01b47edf307b5e765f66e2c0da Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Sat, 5 Sep 2009 00:37:52 -0700 Subject: [PATCH] Fix capp gen -f with no path. --- Tools/capp/Generate.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/capp/Generate.j b/Tools/capp/Generate.j index 26576f98b..d112de349 100644 --- a/Tools/capp/Generate.j +++ b/Tools/capp/Generate.j @@ -45,8 +45,8 @@ function gen(/*va_args*/) } } - if (!justFrameworks && destination.length === 0) - destination = "Untitled"; + if (destination.length === 0) + destination = justFrameworks ? "." : "Untitled"; var sourceTemplate = null; if (File.isAbsolute(template))