mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fix for compiling with spaces in path name and misidentifying IE.
Reviewed by me.
This commit is contained in:
@@ -64,7 +64,7 @@ function compileWithResolvedFlags(aFilePath, objjcFlags, gccFlags)
|
||||
else
|
||||
{
|
||||
// GCC preprocess the file.
|
||||
var gcc = OS.popen("gcc -E -x c -P " + (gccFlags ? gccFlags.join(" ") : "") + " " + aFilePath),
|
||||
var gcc = OS.popen("gcc -E -x c -P " + (gccFlags ? gccFlags.join(" ") : "") + " " + OS.enquote(aFilePath)),
|
||||
chunk = "";
|
||||
|
||||
while (chunk = gcc.stdout.read())
|
||||
|
||||
@@ -34,7 +34,7 @@ var userAgent = window.navigator.userAgent;
|
||||
|
||||
if (userAgent.indexOf("MSIE 7") !== -1)
|
||||
OBJJ_ENVIRONMENTS.unshift("IE7");
|
||||
if (userAgent.indexOf("MSIE 8") !== -1)
|
||||
else if (userAgent.indexOf("MSIE 8") !== -1)
|
||||
OBJJ_ENVIRONMENTS.unshift("IE8");
|
||||
else
|
||||
OBJJ_ENVIRONMENTS.unshift("W3C");
|
||||
|
||||
@@ -73,7 +73,7 @@ function gen(/*va_args*/)
|
||||
else if (!FILE.exists(destinationProject))
|
||||
{
|
||||
// FIXME???
|
||||
OS.system("cp -vR " + sourceTemplate + " " + destinationProject);
|
||||
FILE.copyTree(sourceTemplate, destinationProject);
|
||||
|
||||
var files = FILE.glob(FILE.join(destinationProject, "**", "*")),
|
||||
index = 0,
|
||||
|
||||
Reference in New Issue
Block a user