#Prerequisite: SPLICE_TARGET must be set!
#This is the main script to select components for a certain platform
#

. ${OSPL_HOME}/setup/configuration/setup_all

if [ -n "$OSPL_OUTER_HOME" ]
then
. ${OSPL_OUTER_HOME}/setup/configuration/setup_all 
fi

. ${OSPL_HOME}/setup/configuration/setup_all_dbt

#strip -dev,-release,-purify,-quantify,-test,-devdat,-efence
SEL_TARGET=`expr "$SPLICE_TARGET" : '\([^-]*\)'`

TARGET_DIR=$OSPL_HOME
if [ -f $OSPL_OUTER_HOME/setup/configuration/setup_${SEL_TARGET} ]
then
    TARGET_DIR=$OSPL_OUTER_HOME
fi
. $TARGET_DIR/setup/configuration/setup_${SEL_TARGET}

unset SEL_TARGET
