From 6db2aa5354f84ca19c72f8fc088214a07bdedf45 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Sun, 22 Mar 2009 20:41:03 -0700 Subject: [PATCH] Fix for capp not respecting '-f' option. Reviewed by me. --- Tools/capp/main.j | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/Tools/capp/main.j b/Tools/capp/main.j index 024fdd617..3fa5a5094 100644 --- a/Tools/capp/main.j +++ b/Tools/capp/main.j @@ -52,20 +52,23 @@ function main() if (!destinationProject.exists()) { - exec(["cp", "-vR", sourceTemplate.getCanonicalPath(), destinationProject.getCanonicalPath()], true); - - var files = getFiles(destinationProject, ['j', "plist", "html"]), - index = 0, - count = files.length; - - for (; index < count; ++index) + if (!justFrameworks) { - var file = files[index], - contents = readFile(file); - - contents = contents.replace(/__Product__/g, destinationProject.getName()); - - writeContentsToFile(contents, file); + exec(["cp", "-vR", sourceTemplate.getCanonicalPath(), destinationProject.getCanonicalPath()], true); + + var files = getFiles(destinationProject, ['j', "plist", "html"]), + index = 0, + count = files.length; + + for (; index < count; ++index) + { + var file = files[index], + contents = readFile(file); + + contents = contents.replace(/__Product__/g, destinationProject.getName()); + + writeContentsToFile(contents, file); + } } createFrameworksInFile(destinationProject, shouldSymbolicallyLink);