#!/bin/sh

#----------------------------------------------------
# Script for installation of the ORACLE driver
# after a porting set update
#----------------------------------------------------

RELEASE=6.2
ORA_ENV=$BSE/bin/ora_env${RELEASE}

ORA_RSF_DIR=${BSE}/lib/ora/oracle_home
BaanResFile=$BSE/lib/defaults/db_resource

. $ORA_ENV

#
# There are no platforms left that have an Oracle driver build on the static
# libraries. Just keep the cleaning logic to remove some relics that are left.
#

# Cleanup specific settings for static lib based drivers when they still hang around
if [ -f $BaanResFile ]
then
	# Remove resources set for static driver

	ed $BaanResFile << !EndEdit > /dev/null
g/oracle_client_home:/d
w
q
!EndEdit
fi

if [ -d $ORA_RSF_DIR ]
then
	# Remove old client env used by the static libs
	rm -rf $ORA_RSF_DIR 
fi

# Done !
exit 0

