forked from AdaCore/OpenUxAS-SoI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunLmcpGen.sh
executable file
·46 lines (38 loc) · 1.27 KB
/
RunLmcpGen.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
#! /bin/bash -e
HERE=$PWD;
DIRECTORY="../LmcpGen"
if [ -d "${DIRECTORY}" ]; then
# build lmcpgen
cd ${DIRECTORY}
echo " ** building lmcpgen **"
ant -q jar
echo " ** finished building lmcpgen **"
cd ${HERE}
# auto-create documentation, c++, and python libraries
echo ""
echo " ** processing mdms **"
#java -Xmx2048m -jar ../LmcpGen/dist/LmcpGen.jar
java -Xmx2048m -jar ../LmcpGen/dist/LmcpGen.jar -mdmdir "mdms" -cpp -dir "src/LMCP"
java -Xmx2048m -jar ../LmcpGen/dist/LmcpGen.jar -mdmdir "mdms" -java -dir "../OpenAMASE/OpenAMASE/lib/LMCP"
java -Xmx2048m -jar ../LmcpGen/dist/LmcpGen.jar -mdmdir "mdms" -doc -dir "doc/LMCP"
java -Xmx2048m -jar ../LmcpGen/dist/LmcpGen.jar -mdmdir "mdms" -py -dir "src/LMCP/py"
echo " ** finished processing mdms **"
if [ "$1" = "-a" ]; then
# build and install java library for AMASE
echo ""
echo " ** building java library for AMASE **"
java -Xmx2048m -jar ../LmcpGen/dist/LmcpGen.jar -mdmdir "mdms" -java -dir "../OpenAMASE/OpenAMASE/lib/LMCP"
cd ../OpenAMASE/OpenAMASE/lib/LMCP
ant -q jar
cd dist
cp lmcplib.jar ../..
cd ../../..
ant -q jar
cd ../../OpenUxAS
echo " ** finished building java library for AMASE **"
fi
cd ${HERE}
else
echo "ERROR: LmcpGen must be present!!!"
exit 1
fi