Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 52 lines (43 sloc) 1.59 kB
#!/bin/sh
set -e
mkdir -p lib
echo "Fetching Clojure..."
curl -O -s http://repo1.maven.org/maven2/org/clojure/clojure/1.3.0/clojure-1.3.0.zip
unzip -qu clojure-1.3.0.zip
echo "Copying clojure-1.3.0/clojure-1.3.0.jar to lib/clojure.jar..."
cp clojure-1.3.0/clojure-1.3.0.jar lib/clojure.jar
echo "Cleaning up Clojure directory..."
rm -rf clojure-1.3.0/
echo "Cleaning up Clojure archive..."
rm clojure-1.3.0.zip
echo "Fetching Google Closure library..."
mkdir -p closure/library
cd closure/library
curl -O -s http://closure-library.googlecode.com/files/closure-library-20110323-r790.zip
unzip -qu closure-library-20110323-r790.zip
echo "Cleaning up Google Closure library archive..."
rm closure-library-20110323-r790.zip
cd ..
echo "Fetching Google Closure compiler..."
mkdir -p compiler
cd compiler
curl -O -s http://closure-compiler.googlecode.com/files/compiler-latest.zip
unzip -qu compiler-latest.zip
echo "Cleaning up Google Closure compiler archive..."
rm compiler-latest.zip
cd ../..
echo "Building lib/goog.jar..."
echo "jar cf ./lib/goog.jar -C closure/library/closure/ goog"
jar cf ./lib/goog.jar -C closure/library/closure/ goog
echo "Fetching Rhino..."
curl -O -s http://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R3.zip
unzip -qu rhino1_7R3.zip
echo "Copying rhino1_7R3/js.jar to lib/js.jar..."
cp rhino1_7R3/js.jar lib/js.jar
echo "Cleaning up Rhino directory..."
rm -rf rhino1_7R3/
echo "Cleaning up Rhino archive..."
rm rhino1_7R3.zip
echo "Copying closure/compiler/compiler.jar to lib/compiler.jar"
cp closure/compiler/compiler.jar lib
echo "[Bootstrap Completed]"
Jump to Line
Something went wrong with that request. Please try again.