Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2016-08-15 18:50:44 +0300
committerAleksander Machniak <alec@alec.pl>2016-08-15 18:50:44 +0300
commit292b18b040f466d82facebf68a997c1a43e1e2b7 (patch)
tree1822f4809d72cfc09dd4a2c6b4a80e00fc7380ea /bin
parenteecc6016012a2f22f578eee015176bc127ca32d4 (diff)
Use ECMASCRIPT5 and newest closure compiler
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jsshrink.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/jsshrink.sh b/bin/jsshrink.sh
index 0890a5c40..d57eda372 100755
--- a/bin/jsshrink.sh
+++ b/bin/jsshrink.sh
@@ -2,10 +2,8 @@
PWD=`dirname "$0"`
JS_DIR="$PWD/../program/js"
JAR_DIR='/tmp'
-LANG_IN='ECMASCRIPT3'
-# latest version requires Java 7, we'll use an older one
-#CLOSURE_COMPILER_URL='http://dl.google.com/closure-compiler/compiler-latest.zip'
-CLOSURE_COMPILER_URL='http://dl.google.com/closure-compiler/compiler-20131014.zip'
+LANG_IN='ECMASCRIPT5'
+CLOSURE_COMPILER_URL='http://dl.google.com/closure-compiler/compiler-latest.zip'
do_shrink() {
rm -f "$2"
@@ -39,7 +37,7 @@ if [ ! -r "$JAR_DIR/compiler.jar" ]; then
echo "Please download $CLOSURE_COMPILER_URL and extract compiler.jar to $JAR_DIR/."
exit 1
fi
- (cd $JAR_DIR && unzip "/tmp/$$.zip" "compiler.jar")
+ (cd $JAR_DIR && unzip -p "/tmp/$$.zip" "*.jar" > "$JAR_DIR/compiler.jar")
rm -f "/tmp/$$.zip"
fi