Recreated Aparajita Fishman's documentation related Jakefile change from 345343ef52.

This commit is contained in:
Alexander Ljungberg
2010-09-17 21:21:40 -04:00
parent f46f97f8b6
commit 5742608595
+12 -12
View File
@@ -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]