[Pkg-javascript-commits] [SCM] javascript code quality tool that aims to catch basic errors branch, master, updated. 95fca30ea396b2fdc39774ddf9c450c7d7609e1e

Paul Tagliamonte tag at pault.ag
Sun Jul 15 15:03:55 UTC 2012


The following commit has been merged in the master branch:
commit 95fca30ea396b2fdc39774ddf9c450c7d7609e1e
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun Jul 15 11:06:24 2012 -0400

    Adjusting the requires, and fixing the build

diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..cf68ea9
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+lib/*                        /usr/lib/nodejs/jslint
+bin/jslint.js                /usr/bin/jslint
diff --git a/debian/patches/0002-adjust-requires.patch b/debian/patches/0002-adjust-requires.patch
new file mode 100644
index 0000000..0340536
--- /dev/null
+++ b/debian/patches/0002-adjust-requires.patch
@@ -0,0 +1,36 @@
+diff --git a/bin/jslint.js b/bin/jslint.js
+index 9bb21e0..7a2a29b 100755
+--- a/bin/jslint.js
++++ b/bin/jslint.js
+@@ -1,7 +1,7 @@
+ #!/usr/bin/env nodejs
+ 
+-var linter = require("../lib/linter");
+-var reporter = require("../lib/reporter");
++var linter = require("jslint/linter");
++var reporter = require("jslint/reporter");
+ var nopt = require("nopt");
+ var fs = require("fs");
+ 
+diff --git a/lib/linter.js b/lib/linter.js
+index c5593a3..f169a31 100644
+--- a/lib/linter.js
++++ b/lib/linter.js
+@@ -1,4 +1,4 @@
+-var JSLINT = require("../lib/nodelint");
++var JSLINT = require("jslint/nodelint");
+ 
+ function addDefaults(options) {
+     'use strict';
+diff --git a/lib/reporter.js b/lib/reporter.js
+index 82a5699..a4f67ba 100644
+--- a/lib/reporter.js
++++ b/lib/reporter.js
+@@ -1,6 +1,6 @@
+ /*jslint forin: true */
+ 
+-var color = require("./color");
++var color = require("jslint/color");
+ var log = console.log;
+ 
+ exports.report = function (file, lint, colorize, terse) {
diff --git a/debian/patches/series b/debian/patches/series
index 1b9b315..6f83139 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-adjust-hashbang.patch
+0002-adjust-requires.patch
diff --git a/debian/rules b/debian/rules
index cbe925d..76ec573 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,3 +1,12 @@
 #!/usr/bin/make -f
 %:
 	dh $@
+
+override_dh_auto_build:
+	@echo "Dummy target"
+
+override_dh_auto_install:
+	@echo "Dummy target"
+
+# We use the two dummy targets, since the build makefile wishes to call
+# npm to do the lifting. let's just ignore all that.

-- 
javascript code quality tool that aims to catch basic errors



More information about the Pkg-javascript-commits mailing list