From 0985f7dfb96d28f9a43d4b5b103f66fd067d525b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 23 Nov 2010 10:22:02 +0100 Subject: [PATCH] Fail on error, disable advanced optimalisations. --- scripts/compress-js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/compress-js b/scripts/compress-js index 064652750..ea43782ea 100755 --- a/scripts/compress-js +++ b/scripts/compress-js @@ -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