#!/bin/sh
OH=`echo $ORACLE_HOME`
if [ $1 = "-rollback" ]
then
        if [ -d $OH/psu/11.1.0.7.3 ]
        then
        mv $OH/psu/11.1.0.7.3 $OH/psu/11.1.0.7.3_rollback
        fi
else
        if [ -d $OH/psu/11.1.0.7.3 ]
        then
        rm -rf $OH/psu/11.1.0.7.3
        fi
fi
if [ $1 = "-apply" ]
then
        if [ -d $OH/cpu/view_recompile ]
        then
        rm -rf $OH/cpu/view_recompile/recompile_precheck_jan2008cpu.sql
        rm -rf $OH/cpu/view_recompile/view_recompile_jan2008cpu.sql
        fi
fi
if [ $1 = "-rollback" ]
then
        if [ -d $OH/cpu/scripts ]
        then
        mv $OH/cpu/scripts $OH/cpu/scripts_rollback
        fi
else
        if [ -d $OH/cpu/scripts ]
        then
        rm -rf $OH/cpu/scripts
        fi
fi
if [ ! -f $OH/bin/genoccish ]
then
        touch $OH/bin/genoccish
        chmod u+x $OH/bin/genoccish
fi
if [ $1 = "-apply" ]
then
        if [ ! -d $OH/cfgtoollogs/catbundle ]
then
        mkdir $OH/cfgtoollogs/catbundle
fi
fi
