OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Copyright (c) 2008 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # This script checks the touch_ntp code for common errors and style |
| 8 # problems using the closure compiler (jscompiler) and closure linter |
| 9 # (gjslint) - both of which must be on the path. |
| 10 # See http://code.google.com/closure/compiler/ and |
| 11 # http://code.google.com/closure/utilities/ for details on these tools. |
| 12 |
| 13 # Note that we throw away the output from jscompiler since it's use |
| 14 # is not yet common in Chromium and for now we want it to be an optional |
| 15 # tool for helping to find bugs, not something that actually changes |
| 16 # the embedded JavaScript (making it harder to debug, for example). |
| 17 |
| 18 SOURCES="eventtracker.js touchhandler.js slider.js newtab.js grabber.js " |
| 19 SOURCES+="standalone/standalone_hack.js" |
| 20 |
| 21 ARGS="--warning_level VERBOSE" |
| 22 ARGS+=" --js_output_file /dev/null" |
| 23 for S in $SOURCES tools/externs.js; do |
| 24 ARGS+=" --js $S" |
| 25 done |
| 26 |
| 27 cd `dirname $0`/.. |
| 28 |
| 29 echo jscompiler $ARGS |
| 30 jscompiler $ARGS || exit 1 |
| 31 |
| 32 echo gjslint $SOURCES |
| 33 gjslint $SOURCES || exit 1 |
OLD | NEW |