forked from dice-group/FOX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·34 lines (32 loc) · 913 Bytes
/
build.sh
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
#!/bin/bash
#
# check installed dependencies
echo "Checking dependencies..."
#file="lib/stanford-corenlp-3.2.0-models.jar"
#url="http://repo1.maven.org/maven2/edu/stanford/nlp/stanford-corenlp/3.2.0/stanford-corenlp-3.2.0-models.jar"
#if [ ! -f "$file" ]; then
# echo "Downloading dependencies ... ($url)"
# curl --retry 4 -o "$file" "$url"
# if [ ! -f "$file" ]; then
# echo "Couldn't downloading dependency: $file"
# fi
#fi
#
# check installed dependencies
pkg="graphviz"
if dpkg --get-selections | grep -q "^$pkg[[:space:]]*install$" >/dev/null; then
echo "$pkg is already installed"
else
echo "Please install: $pkg"
echo "(sudo apt-get install $pkg)"
echo
fi
#
# build fox
echo "Building FOX..."
if [ -f "$file" ] & dpkg --get-selections | grep -q "^$pkg[[:space:]]*install$" >/dev/null; then
mvn clean install javadoc:javadoc
else
echo "Couldn't build FOX."
fi
#