scripts/jslint.sh
author Daniel Hans <Daniel.M.Hans@gmail.com>
Tue, 03 Nov 2009 02:10:47 +0100
changeset 3076 11d5fa052ad1
parent 3065 c7c5212ba840
permissions -rwxr-xr-x
List view of all tasks for a GHOP student. Link 'List my tasks' in the GHOP program submenu is now active for a GHOP student and displays all tasks (grouped by organizations) which the user is involved in.

#!/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"