mkproj.ksh 1.32 KB
#!/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