forked from Orange-OpenSource/conllueditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallJQ.sh
executable file
·46 lines (30 loc) · 898 Bytes
/
installJQ.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
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# helper script to download and install jquery, jquery-ui, boostrap and popper
MYDIR=$(dirname $0)
DEST=$MYDIR/../gui/lib
if [ -d $DEST ]; then
echo "destination directory $DEST exists already. aborted"
exit 1
fi
which wget
if [ $? -ne 0 ]; then
echo "need wget to download libs. aborted"
exit 2
fi
function getfile() {
wget -q $1
if [ $? -ne 0 ]; then
echo "cannot download $1. aborted"
exit 11
fi
}
mkdir $DEST
pushd $DEST
getfile https://code.jquery.com/jquery-3.3.1.min.js
getfile https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip
unzip jquery-ui-1.12.1.zip
getfile https://github.com/twbs/bootstrap/releases/download/v4.1.3/bootstrap-4.1.3-dist.zip
mkdir bootstrap-4.1.3
unzip -d bootstrap-4.1.3 bootstrap-4.1.3-dist.zip
getfile https://unpkg.com/popper.js/dist/umd/popper.min.js
getfile https://unpkg.com/popper.js/dist/umd/popper.min.js.map