forked from scala-ide/scala-ide
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-all.sh
executable file
·63 lines (51 loc) · 939 Bytes
/
build-all.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
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# run in sequences the different maven calls needed to fully build Scala IDE from scratch
#ROOT_DIR=$(dirname $(readlink -f $0))
# not as good as the readlink version, but it is not working on os X
ROOT_DIR=$(dirname $0)
cd ${ROOT_DIR}
ROOT_DIR=${PWD}
if [ -z "$*" ]
then
ARGS="-P scala-2.9.x clean install"
else
ARGS="$*"
fi
echo "Running with: mvn ${ARGS}"
# the parent project
cd ${ROOT_DIR}
mvn ${ARGS}
RES=$?
if [ ${RES} != 0 ]
then
exit ${RES}
fi
# the toolchain
cd ${ROOT_DIR}/org.scala-ide.build-toolchain
mvn ${ARGS}
RES=$?
if [ ${RES} != 0 ]
then
exit ${RES}
fi
# set the versions if required
cd ${ROOT_DIR}
if [ -n "${SET_VERSIONS}" ]
then
mvn -Pset-versions exec:java
RES=$?
if [ ${RES} != 0 ]
then
exit ${RES}
fi
else
echo "Not running UpdateScalaIDEManifests."
fi
# the plugins
cd ${ROOT_DIR}/org.scala-ide.sdt.build
mvn ${ARGS}
RES=$?
if [ ${RES} != 0 ]
then
exit ${RES}
fi