Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 71 lines (60 sloc) 2.2 KB
set -e
mkdir -p lib
echo "Fetching Clojure..."
curl -O -s
unzip -qu
echo "Copying clojure-1.4.0/clojure-1.4.0.jar to lib/clojure.jar..."
cp clojure-1.4.0/clojure-1.4.0.jar lib/clojure.jar
echo "Cleaning up Clojure directory..."
rm -rf clojure-1.4.0/
echo "Cleaning up Clojure archive..."
echo "Fetching Google Closure library..."
mkdir -p closure/library
cd closure/library
if [ "$1" = "--closure-library-head" ] ; then
echo "Building against HEAD of Google Closure library..."
# Check if svn present
type svn >/dev/null 2>&1 || { echo >&2 "Need svn command to checkout HEAD of Google Closure library. Aborting."; exit 1; }
# Existing checkout?
if svn info --non-interactive >/dev/null 2>&1; then
echo "Updating Google Closure library from HEAD..."
svn update -q --non-interactive
echo "Checking out HEAD of Google Closure library..."
rm -rf *
svn checkout -q --non-interactive ./
echo "Fetching Google Closure library..."
curl -O -s "$f"
unzip -qu "$f"
echo "Cleaning up Google Closure library archive..."
rm "$f"
cd ..
echo "Fetching Google Closure compiler..."
mkdir -p compiler
cd compiler
curl -O -s
unzip -qu
echo "Cleaning up Google Closure compiler archive..."
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
unzip -qu
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..."
echo "Copying closure/compiler/compiler.jar to lib/compiler.jar"
cp closure/compiler/compiler.jar lib
echo "[Bootstrap Completed]"
Something went wrong with that request. Please try again.