Fail on error, disable advanced optimalisations.

This commit is contained in:
Michal Čihař
2010-11-23 10:22:02 +01:00
parent 1be7e97469
commit 0985f7dfb9

View File

@@ -1,7 +1,9 @@
#!/bin/sh
set -e
for file in `find js -name '*.js' -not -name '*min.js'` ; do
mkdir -p sources/`dirname $file`
mv $file sources/$file
java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file --compilation_level ADVANCED_OPTIMIZATIONS
java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file
done