Skip to content

Commit

Permalink
Revert "actually download the compressor"
Browse files Browse the repository at this point in the history
This reverts commit b179f12.
  • Loading branch information
Nilos committed Jul 4, 2017
1 parent eb92f35 commit 682edb7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions compress/compress_with_closure.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash

set -x
set -e

DIR=`dirname $0`

URL="https://dl.google.com/closure-compiler/compiler-latest.zip"
Expand All @@ -24,10 +21,7 @@ if [ $? -eq 0 ] ; then
if [ -s $DIR/$FILE ] ; then
pushd . > /dev/null
cd $DIR
mkdir -p extracted
unzip -o $FILE -d extracted/ > /dev/null 2> /dev/null
cp extracted/closure-compiler*.jar compiler.jar
rm -rf extracted
unzip -o $FILE compiler.jar > /dev/null 2> /dev/null
popd > /dev/null
fi
fi
Expand All @@ -39,6 +33,7 @@ java -jar $DIR/compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS \
--js ._tmpRC.js \
| $DIR/digitize.pl \
| $DIR/dewindowize.pl


rm -f ._tmpRC.js

0 comments on commit 682edb7

Please sign in to comment.