scripts/jslint.sh
author Mario Ferraro <fadinlight@gmail.com>
Sun, 15 Nov 2009 22:12:20 +0100
changeset 3093 d1be59b6b627
parent 3065 c7c5212ba840
permissions -rwxr-xr-x
GMaps related JS changed to use new google namespace. Google is going to change permanently in the future the way to load its services, so better stay safe. Also this commit shows uses of the new melange.js module. Fixes Issue 634.

#!/bin/bash
#Requires java installed

echo "JSLINT: running jslint"

JS_DIRECTORY="../app/soc/content/js"
JSLINT="../thirdparty/jslint/jslint.js"
RHINO="../thirdparty/shrinksafe/js.jar"

for dir in $(find $JS_DIRECTORY -type d); do
  for i in $(find $dir/*.js -type f); do
    echo "JSLINT: Processing $i"
    java -jar $RHINO $JSLINT $i
  done
done

echo "JSLINT: process finished"