mkproj.ksh
1.32 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
#!/bin/ksh
#RCS$Id: mkproj.ksh 24 2013-12-11 13:47:28Z lbeigbeder $
#------------------------------------------------------------------------------
# NAME : mkproj
# FUNCTION : complete 3dview impex generation script
# ORIGIN : GFI Informatique
# PROJECT : 3DView IMPEx
#----------------------------------------------------------------
# HISTORY
# VERSION : 23/07/2013 : LBE
# Creation
# END-HISTORY
# ----------------------------------------------------------------
# subsystems list
javalist="server/dpc"
clist="server/web/native/orbitlibs server/web/native/securedclibs server/web/native/exe"
logfile="`pwd`/$0.log"
# Checking M3DV_ROOT
if [ "$I3DV_ROOT" = "" ]
then
echo " I3DV_ROOT not set "
exit
fi
if [ ! -d $I3DV_ROOT ]
then
echo " $I3DV_ROOT directory does not exist !"
exit
fi
# generating all subsystems
# generating java subsystems
echo " " > $logfile
echo "logfile = " $logfile
for rep in `echo $javalist`
do
echo "==> Making the JAVA sub-system : " $rep
cd $I3DV_ROOT/$rep/tools
ant >> $logfile 2>&1
echo "==> End of software generation for the sub-system : " $rep
done
echo ""
# generating C subsystems
for rep in `echo $clist`
do
echo "==> Making the C sub-system : " $rep
cd $I3DV_ROOT/$rep/tools
chmod +x *ksh
./mkapp.ksh >> $logfile 2>&1
echo "==> End of software generation for the sub-system : " $rep
done