projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5af8d
)
better script
smf+compile
author
Dan Vanderkam
<danvdk@gmail.com>
Thu, 24 Oct 2013 03:21:32 +0000
(22:21 -0500)
committer
Dan Vanderkam
<danvdk@gmail.com>
Thu, 24 Oct 2013 03:21:32 +0000
(22:21 -0500)
compile-with-closure.sh
patch
|
blob
|
blame
|
history
diff --git
a/compile-with-closure.sh
b/compile-with-closure.sh
index
a37c80f
..
496a244
100755
(executable)
--- a/
compile-with-closure.sh
+++ b/
compile-with-closure.sh
@@
-6,7
+6,16
@@
# It outputs minified JS to a temp file. This should be ignored for now, until
# it's fully functional.
-CLOSURE_COMPILER=../../closure-compiler-read-only/build/compiler.jar
+if [ $# -ne 1 ]; then
+ echo "Usage: $0 (path/to/closure/compiler.jar)" 1>&2
+ exit 1
+fi
+if [ ! -f $1 ]; then
+ echo "$1 does not exist"
+ exit 1
+fi
+
+CLOSURE_COMPILER=$1
java -jar $CLOSURE_COMPILER \
--compilation_level ADVANCED_OPTIMIZATIONS \