[Pkg-mozext-commits] [itsalltext] 88/459: Updated makefile

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 03e06f5999b62b0a3c0e8fac53dd89bae85f50db
Author: Christian Höltje <docwhat at gerf.org>
Date:   Wed Jan 31 18:34:08 2007 -0500

    Updated makefile
---
 Makefile | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 8fa08b8..9f55d10 100644
--- a/Makefile
+++ b/Makefile
@@ -74,13 +74,12 @@ lint: lint.log
 
 lint.log: $(SOURCES_JS)
 	$(Q)echo Linting source ...
-	$(Q)for jsfile in $^; do echo "jslint: $${jsfile}" ; jslint $${jsfile}; done > "$@" 2>&1
-	$(Q)if [ `egrep -v '^jslint: ' "$@" | wc -l` -eq 0 ]; \
-	 then echo "  ... pass" ; \
-	 else touch --date='1972-01-01' "$@"; \
-	   echo "  ... there were $$(egrep '^Lint at line ' $@ | wc -l) errors."; \
-	   false ;\
-	 fi
+	$(Q)jslint -p $^ > $@
+	$(Q)if [ 0 -ne `grep -vE 'jslint: No problems found in ' "$@" | wc -l` ]; \
+	then touch --date='1972-01-01' "$@"; \
+	     echo "  ... there were $$(grep -E '^lint at [^:]+:[0-9]+:[0-9]+' "$@" | wc -l) errors."; \
+	     false ;\
+	fi
 
 .PHONY: todo
 todo:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list