Fix for compiling with spaces in path name and misidentifying IE.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-11-15 19:13:13 -08:00
parent 44cbcc60fa
commit aa8689a4f0
3 changed files with 3 additions and 3 deletions
@@ -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())
+1 -1
View File
@@ -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");
+1 -1
View File
@@ -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,