#! /bin/bash
#*******************************************************************************
# E.S.O. - ACS project
#
# "@(#) $Id: prologue,v 1.5 2008/09/23 13:07:42 bjeram Exp $"
#
# who       when      what
# --------  --------  ----------------------------------------------
# srankin  2004-07-25  created
#

# signal trap (if any)

# since we can not install to currently used INTROOT we create a some kind of new one
getTemplateForDirectory INTROOT tmp/introot

# INTROOT has to point to the tyemporary introot in tmp
# we have to run: clean_rtai and do_rtai because the makefile has created *.drtm in advance with
#  ... the right INTROOT
# after make install we have to make clean_rtia do_rtai that the generated *.drtm is not used anymore 
cd ../src; make clean_rtai do_rtai install INTROOT=$PWD/../test/tmp/introot > ../test/makeInstall.log 2>&1; make clean_rtai do_rtai >> ../test/makeInstall.log 2>&1; cd ../test
make clean_rtai do_rtai install INTROOT=$PWD/tmp/introot >> makeInstall.log 2>&1; make clean_rtai do_rtai >> ../test/makeInstall.log 2>&1

#for some reason makefile deletes LKMs in $INTROOT, so we have to put them back
cp -R ../rtai $PWD/tmp/introot


export ACS_TMP=$PWD/tmp
#Start the ORB services and manager.
acsutilTATPrologue



#
# ___oOo___
