forked from clojure/clojurescript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap
executable file
·51 lines (43 loc) · 1.55 KB
/
bootstrap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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]"