mkproj.sh 1.32 KB
#!/bin/bash
#RCS$Id: mkproj.sh 1110 2018-02-15 16:49:17Z frup47043 $
#------------------------------------------------------------------------------
# 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 *sh
	./mkapp.sh >> $logfile 2>&1
	echo "==> End of software generation for the sub-system : " $rep
done