mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-16 07:31:28 +00:00
Fix for capp not respecting '-f' option.
Reviewed by me.
This commit is contained in:
+16
-13
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user