fork-openpgpjs/scripts/minimize.sh
2011-12-16 17:16:15 +01:00

16 lines
322 B
Bash
Executable File

#!/bin/bash
echo "Setup..."
_src="src";
_raw="resources/openpgp.js";
_min="resources/openpgp.min.js";
_compiler="resources/compiler.jar";
:>"$_raw"
:>"$_min"
echo "Concatenating..."
find "$_src" -name "*.js" -exec cat "{}" >> "$_raw" \;
echo "Minimizing..."
java -jar "$_compiler" --js "$_raw" --js_output_file "$_min"