-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·92 lines (83 loc) · 2.89 KB
/
build.sh
File metadata and controls
executable file
·92 lines (83 loc) · 2.89 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
PRGDIR=`dirname "$PRG"`
echo "********************************************"
echo "* *"
echo "* Updating submodules *"
echo "* *"
echo "********************************************"
git submodule update --init --recursive
if [ $? -ne 0 ]; then
echo ""
echo "ERROR: Failed to update submodules. Aborting build."
exit -1
fi
echo ""
echo "Submodules updated."
echo ""
echo "********************************************"
echo "* *"
echo "* Building YAMCS *"
echo "* *"
echo "********************************************"
(cd thirdparty/yamcs && exec mvn install -Dmaven.test.skip=true)
if [ $? -ne 0 ]; then
echo ""
echo "ERROR: Failed to build YAMCS. Aborting build."
exit -1
fi
echo ""
echo "YAMCS build complete."
echo "********************************************"
echo "* *"
echo "* Building YAMCS Client Package *"
echo "* *"
echo "********************************************"
rm -Rf thirdparty/yamcs/*.tar.gz
rm -Rf thirdparty/yamcs/*.zip
(cd thirdparty/yamcs && exec ./make-client-package.sh)
if [ $? -ne 0 ]; then
echo ""
echo "ERROR: Failed to build YAMCS client package. Aborting build."
exit -1
fi
echo ""
echo "YAMCS client package build complete."
echo "********************************************"
echo "* *"
echo "* Building Yamcs Studio *"
echo "* *"
echo "********************************************"
(cd thirdparty/yamcs-studio && exec ./make-platform.sh)
if [ $? -ne 0 ]; then
echo ""
echo "ERROR: Failed to build Yamcs Studio platform. Aborting build."
exit -1
fi
echo ""
(cd thirdparty/yamcs-studio && exec ./make-product.sh)
if [ $? -ne 0 ]; then
echo ""
echo "ERROR: Failed to build Yamcs Studio product. Aborting build."
exit -1
fi
echo ""
echo "Yamcs Studio build complete."
echo "********************************************"
echo "* *"
echo "* Building the Sage plugins *"
echo "* *"
echo "********************************************"
(cd yamcs-cfs && exec mvn package)
if [ $? -ne 0 ]; then
echo ""
echo "ERROR: Failed to build the Yamcs-CFS provider. Aborting build."
exit -1
fi
echo ""
cp yamcs-cfs/target/*.jar live/lib/ext
echo "Sage plugins build complete."
echo "********************************************"
echo "* *"
echo "* Build Complete *"
echo "* *"
echo "********************************************"