From 57426085952909b0673599fe980f99340f8480ec Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Fri, 17 Sep 2010 21:19:26 -0400 Subject: [PATCH] Recreated Aparajita Fishman's documentation related Jakefile change from 345343ef52d66dde88f3345b0bd6e5e09a4344ca. --- Jakefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Jakefile b/Jakefile index e67749c38..83ca1c030 100644 --- a/Jakefile +++ b/Jakefile @@ -92,7 +92,7 @@ task ("documentation", function() { // try to find a doxygen executable in the PATH; var doxygen = executableExists("doxygen"); - + // If the Doxygen application is installed on Mac OS X, use that if (!doxygen && executableExists("mdfind")) { @@ -104,14 +104,14 @@ task ("documentation", function() doxygen = FILE.join(doxygenApps[0], "Contents/Resources/doxygen"); } } - + if (doxygen && FILE.exists(doxygen)) { stream.print("\0green(Using " + doxygen + " for doxygen binary.\0)"); - + var documentationDir = FILE.join("Tools", "Documentation"); - - if (OS.system(["ruby", FILE.join(documentationDir, "make_headers.sh")])) + + if (OS.system([FILE.join(documentationDir, "make_headers.sh")])) OS.exit(1); //rake abort if ($? != 0) if (!OS.system([doxygen, FILE.join(documentationDir, "Cappuccino.doxygen")])) @@ -120,7 +120,7 @@ task ("documentation", function() mv("debug.txt", FILE.join("Documentation", "debug.txt")); mv("Documentation", $DOCUMENTATION_BUILD); } - + OS.system(["ruby", FILE.join(documentationDir, "cleanup_headers")]); } else @@ -212,17 +212,17 @@ task ("demos", function() return this._plist.valueForKey(key); return this._plist; } - + Demo.prototype.name = function() { return this.plist("CPBundleName"); } - + Demo.prototype.path = function() { return this._path; } - + Demo.prototype.excluded = function() { return !!this.plist("CPDemoExcluded"); @@ -232,7 +232,7 @@ task ("demos", function() { return this.name(); } - + FILE.glob(FILE.join(demosDir, "demos", "**/Info.plist")).map(function(demoPath){ return new Demo(FILE.dirname(demoPath)) }).filter(function(demo){ @@ -246,7 +246,7 @@ task ("demos", function() var outputPath = demo.name().replace(/\s/g, "-")+".zip"; OS.system("cd "+OS.enquote(FILE.dirname(demo.path()))+" && zip -ry -8 "+OS.enquote(outputPath)+" "+OS.enquote(FILE.basename(demo.path()))); - // remove the frameworks + // remove the frameworks rm_rf(FILE.join(demo.path(), "Frameworks")); }); }); @@ -330,7 +330,7 @@ function pushPackage(path, remote, branch) cmd.push(["git", "tag", "rev-"+pkg["cappuccino-revision"].slice(0,6)]); OS.system(buildCmd(cmd)); - + if (OS.system(buildCmd([ ["cd", packagePath], ["git", "push", "--tags", "origin", "HEAD:"+branch]