#! /bin/sh
-# Download http://dl.google.com/closure-compiler/compiler-latest.zip
-# and unzip it in closure/ before running this script.
+# Download the latest .jar from
+# https://mvnrepository.com/artifact/com.google.javascript/closure-compiler/v20231112
+# (adjust the URL for the version you want) before running this script.
-java -jar closure/compiler.jar \
- --language_in ECMASCRIPT5 \
+umask 022
+
+java -jar closure-compiler-v20231112.jar \
--compilation_level SIMPLE \
--js_output_file=www/js/remoteglot.min.js \
- --externs externs/jquery-1.9.js \
- --externs externs/webstorage.js \
www/js/chessboard-0.3.0.js \
www/js/chess.js \
+ www/js/json_delta.js \
www/js/remoteglot.js
+cat www/css/chessboard-0.3.0.css www/css/remoteglot.css | sass --scss -t compressed > www/css/remoteglot.min.css
+perl replace.pl < www/index.dev.html > www/index.html
+