From 6a9042fd9cddc83bb835760c88160136ea8b5fe5 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Tue, 12 Jan 2010 13:01:11 -0800 Subject: [PATCH] make narwhal-jsc version check optional --- common.jake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.jake b/common.jake index 2fb851ace..3d350b7ca 100644 --- a/common.jake +++ b/common.jake @@ -10,6 +10,9 @@ function ensurePackageUpToDate(packageName, requiredVersion, options) var packageInfo = require("packages").catalog[packageName]; if (!packageInfo) { + if (options.optional) + return; + print("You are missing package \"" + packageName + "\", version " + requiredVersion + " or later. Please install using \"tusk install "+packageName+"\" and re-run jake"); OS.exit(1); } @@ -52,6 +55,7 @@ ensurePackageUpToDate("narwhal", "0.2.1", { message : "Update Narwhal to 0.2.1 by running bootstrap.sh, or pulling the latest from git (see: http://github.com/280north/narwhal)." }); ensurePackageUpToDate("narwhal-jsc", "0.1.1", { + optional : true, message : "Rebuild narwhal-jsc by changing to the narwhal-jsc package directory and running \"make webkit\"." });