From 4fd6ef4adbf15abdb52f2268548b2abc9979d415 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Wed, 9 Feb 2011 13:40:50 +0000 Subject: [PATCH] build: remove reference to dist/jquery.js from build/ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch makes it easier to use jQuery's build system for other projects, without having to maintain a patch. Signed-off-by: Asbjørn Sloth Tønnesen --- Makefile | 2 +- build/jslint-check.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 48a885d..45d2764 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ ${SRC_DIR}/selector.js: ${SIZZLE_DIR}/sizzle.js lint: jquery @@if test ! -z ${JS_ENGINE}; then \ echo "Checking jQuery against JSLint..."; \ - ${JS_ENGINE} build/jslint-check.js; \ + ${JS_ENGINE} build/jslint-check.js ${JQ}; \ else \ echo "You must have NodeJS installed in order to test jQuery against JSLint."; \ fi diff --git a/build/jslint-check.js b/build/jslint-check.js index 72d6701..95224be 100644 --- a/build/jslint-check.js +++ b/build/jslint-check.js @@ -1,6 +1,8 @@ var JSLINT = require("./lib/jslint").JSLINT, print = require("sys").print, - src = require("fs").readFileSync("dist/jquery.js", "utf8"); + args = process.argv, + filename = args[2], + src = require("fs").readFileSync(filename, "utf8"); JSLINT(src, { evil: true, forin: true, maxerr: 100 }); -- 1.7.10.4