File: compile.sh

Recommend this page to a friend!
  Classes of Javier Camelis   notify   compile.sh   Download  
File: compile.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: notify
Bind listeners to dispatch custom events
Author: By
Last change: Update of compile.sh
Date: 2 years ago
Size: 549 bytes
 

Contents

Class file image Download
COMPILER=scripts/compiler.jar SOURCE=notify.js MINIFY=notify.min.js LICENSE=license.txt TEMP=temp.txt if [ ! -f $COMPILER ] then echo Downloading Closure Compiler wget http://closure-compiler.googlecode.com/files/compiler-latest.zip unzip compiler-latest.zip $COMPILER -d scripts/ rm compiler-latest.zip fi echo Compiling and Minifying with Closure Compiler java -jar $COMPILER --compilation_level SIMPLE_OPTIMIZATIONS --js $SOURCE --js_output_file $MINIFY cat $LICENSE >> $TEMP cat $MINIFY >> $TEMP cat $TEMP > $MINIFY rm $TEMP