#!/sbin/sh
####################################
# Product: ixPython
# Fileset: Latest
# preremove
# (c) Copyright Hewlett-Packard Company
####################################
UTILS="/usr/lbin/sw/control_utils"
    if [[ ! -f $UTILS ]]
    then
        echo "ERROR: Cannot find $UTILS"
        exit 1
    fi
    . $UTILS
exitval=$SUCCESS
####################################
#kill python process before install  Python
####################################
kill_named_procs python 

####################################
# Remove Execulable File Links
####################################
for str in `ls /opt/iexpress/python/bin`
do
rm -f /usr/bin/$str
done

########################################
# Remove Library File Link
########################################
arch=`uname -m`

if [ "$arch" = "ia64" ]
then
    rm -f /usr/lib/hpux32/python2.5
else
    rm -f /usr/lib/python2.5
fi

##################
# Header Files
##################

rm -f /usr/include/python2.5
####################################
exit $exitval
####################################

