1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-11-04 18:45:35 +00:00
diversity.volt.link/frontend/jsSHA/build/make-release
2022-11-19 23:36:12 +01:00

10 lines
441 B
Bash
Executable file

#!/bin/bash
declare -A releases
releases=(["sha"]=15 ["sha1"]=1 ["sha256"]=2 ["sha512"]=4 ["sha3"]=8)
CLOSURE_COMPILER=${CLOSURE_COMPILER-"../compiler.jar"}
for i in "${!releases[@]}"
do
java -jar ${CLOSURE_COMPILER} --define="SUPPORTED_ALGS=${releases[$i]}" --externs externs.js --warning_level VERBOSE --compilation_level ADVANCED_OPTIMIZATIONS --language_in=ECMASCRIPT5_STRICT --js ../src/sha_dev.js --js_output_file ../src/$i.js
done