build: remove reference to dist/jquery.js from build/
authorAsbjørn Sloth Tønnesen <ast@mugami.com>
Wed, 9 Feb 2011 13:40:50 +0000 (13:40 +0000)
committerAsbjørn Sloth Tønnesen <ast@mugami.com>
Wed, 9 Feb 2011 13:40:50 +0000 (13:40 +0000)
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 <ast@mugami.com>

Makefile
build/jslint-check.js

index 48a885d..45d2764 100644 (file)
--- 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
index 72d6701..95224be 100644 (file)
@@ -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 });