-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·55 lines (47 loc) · 1.75 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# Builds the test and teamengine for UNIX/OS
build_teamengine=false
# TEAM Engine tag from https://github.com/opengeospatial/teamengine
te_tag=4.0.5
# base to download and install teamengine.
# change the base if the directory is other than the current user default directory
base=~
mkdir -p $base/teamengine/TE_BASE/scripts
mkdir -p $base/teamengine/te_build
mkdir -p $base/teamengine/te_install
folder_to_build=$base/teamengine/te_build
te_install=$base/teamengine/te_install
TE_BASE=$base/teamengine/TE_BASE
########
# build the test
mvn install
cd target
unzip ets-sos10-1.0.0-r13.zip -d $TE_BASE/scripts/
if $build_teamengine; then
#download and build TEAM Engine
cd $folder_to_build
git clone https://github.com/opengeospatial/teamengine.git
cd $base/teamengine/te_build/teamengine
git checkout $te_tag
mvn install
unzip $folder_to_build/teamengine/teamengine-console/target/teamengine-console-$te_tag-bin.zip -d $te_install
unzip $folder_to_build/teamengine/teamengine-console/target/teamengine-console-$te_tag-base.zip -d $TE_BASE
fi
echo " "
echo "----------------- "
echo " "
echo "Congratulations"
echo " "
echo "TEAM Engine ($te_tag) and the ets-sos10-1.0.0-r13 have been installed."
echo " "
echo " UNIX/OS users - You can run the test with the following commands: "
echo " export TE_BASE=$TE_BASE"
echo " $base/teamengine/te_install/bin/unix/test.sh -source=sos/1.0.0/ctl/SOS_ETS.xml"
echo " "
echo " Windows users - You can run the test with the following commands:"
echo " set TE_BASE=$TE_BASE"
echo " $base/teamengine/te_install/bin/windows/test.bat -source=sos/1.0.0/ctl/SOS_ETS.xml"
echo " "
echo " Any issue or questions please send an email to the CITE forum:
http://cite.opengeospatial.org/forum"
echo " "