Sha256: 6a9e9823513a125134e5f7a54ef2076f0ca088a9dadf79afc4a91570a1deec2a
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
#!/bin/sh echo "Generating sample javascript" mkdir compilation cat >compilation/test.js <<EOF function create_alert(msg) { alert(msg); } EOF echo "Testing compilation" cd compilation for file in * do if [ -f "$file" ] ; then name=${file%.*} java -jar ../closure/compiler/compiler.jar --js "$file" --js_output_file "$name-compiled.js" fi done cd .. echo "\nOriginal:" cat compilation/test.js echo "\nOptimized:" cat compilation/test-compiled.js echo "\nCleaning up" rm -rf compilation
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clementine-0.0.3 | ext/clojure-clojurescript-bef56a7/script/test-compile |
clementine-0.0.2 | ext/clojure-clojurescript-bef56a7/script/test-compile |