Added license to header, SYS var

This commit is contained in:
Aparajita Fishman
2011-05-11 11:39:18 -04:00
parent 85080f5c58
commit 329baa1719
@@ -3,14 +3,30 @@
* __project.name__
*
* Created by __user.name__ on __project.date__.
*
* Copyright __project.year__, __organization.name__. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
//===========================================================
// DO NOT REMOVE
//===========================================================
var ENV = require("system").env,
var SYS = require("system"),
ENV = SYS.env,
FILE = require("file"),
OS = require("os");
@@ -38,9 +54,9 @@ var buildDir = "Build";
var stream = require("narwhal/term").stream,
JAKE = require("jake"),
task = JAKE.task,
FileList = JAKE.FileList,
CLEAN = require("jake/clean").CLEAN,
CLOBBER = require("jake/clean").CLOBBER,
FileList = JAKE.FileList,
blend = require("cappuccino/jake").blend,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug",
productName = "__project.nameasidentifier__",
@@ -123,11 +139,11 @@ var describeTask = function(application, task, description)
var symlinkBlendKit = function(destinationPath)
{
if (FILE.isDirectory(destinationPath))
if (FILE.exists(destinationPath))
return;
var blendKitPath = null,
path = FILE.join(require("system").prefix, "packages", "cappuccino", "Frameworks", "BlendKit");
path = FILE.join(SYS.prefix, "packages", "cappuccino", "Frameworks", "BlendKit");
if (FILE.isDirectory(path))
blendKitPath = path;