-
Notifications
You must be signed in to change notification settings - Fork 5
/
update.sh
executable file
·49 lines (39 loc) · 886 Bytes
/
update.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
46
47
48
49
#!/bin/bash
# Requirements:
# git
# openjdk9 -
# maven (3.5.0)
# bower
echo 'Building SpimeDB...'
echo '-------------------'
echo
echo 'Updating from git'
git pull
echo 'Update dependency: JCog'
[[ $CLEAN ]] && rm -fr ~/.m2/repository/narchy narchy
git clone --depth 1 https://github.com/narchy/narchy 2> /dev/null # just to be sure
pushd .
cd narchy
git pull||exit 1
popd
echo 'Build dependency: JCog'
pushd .
cd narchy/util
mvn install -DskipTests=true||exit 1
popd
echo 'Build dependency: NAL'
pushd .
cd narchy/nal
mvn install -DskipTests=true||echo "Unable to build NAL for 'logic' module. Continuing though..."
popd
echo 'Build SpimeDB'
[[ $CLEAN ]] && mvn clean
mvn install -DskipTests=true||exit 1
echo 'Generate Web App (bower)'
pushd .
cd src/main/resources/public/
bower install||exit 1
bower update||exit 1
bower prune||exit 1
popd
echo 'Finished'