-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·40 lines (35 loc) · 1.45 KB
/
bootstrap.sh
File metadata and controls
executable file
·40 lines (35 loc) · 1.45 KB
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
#!/bin/sh
if [ -d lib ]; then
true
else
mkdir lib
fi
if [ -e lib/antlr-3.2.jar ]; then
true
else
echo "Downloading ANTLR 3.2 JAR from http://www.antlr.org/download.html"
curl "http://www.antlr.org/download/antlr-3.2.jar" > lib/antlr-3.2.jar || \
(echo "Failed to download ANTLR. Aborting.";rm -f lib/antlr-3.2.jar;exit 1)
fi
if [ -e lib/antlr-runtime-3.2.jar ]; then
true
else
echo "Downloading ANTLR 3.2 JAR from http://www.antlr.org/download.html"
curl "http://www.antlr.org/download/antlr-runtime-3.2.jar" > lib/antlr-runtime-3.2.jar || \
(echo "Failed to download ANTLR Runtime. Aborting.";rm -f lib/antlr-runtime-3.2.jar;exit 1)
fi
if [ -e lib/commons-cli-1.2.jar ]; then
true
else
echo "Downloading Apache Common Cli JAR from http://commons.apache.org/cli/download_cli.cgi"
curl "http://www.us.apache.org/dist//commons/cli/binaries/commons-cli-1.2-bin.tar.gz" | tar -zxf - commons-cli-1.2/commons-cli-1.2.jar -O > lib/commons-cli-1.2.jar || \
(echo "Failed to download Apache Common Cli. Aborting.";rm -f lib/commons-cli-1.2.jar;exit 1)
fi
if [ -e lib/guava-13.0.1.jar ]; then
true
else
echo "Downloading Google Guava 1.3 JAR from http://code.google.com/p/guava-libraries/wiki/Release13"
curl "http://search.maven.org/remotecontent?filepath=com/google/guava/guava/13.0.1/guava-13.0.1.jar" > lib/guava-13.0.1.jar || \
(echo "Failed to download Google Guava. Aborting.";rm -f lib/guava-13.0.1.jar;exit 1)
fi
echo "Type 'make' to build the sample parser."