#! /sbin/sh
####################################
# Product: ixPython
# Fileset: Latest
# postinstall
# (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
####################################
# Link Files
####################################
# Executable File
####################################
for str in `ls /opt/iexpress/python/bin`
do
rm -f /usr/bin/$str
ln -s /opt/iexpress/python/bin/$str /usr/bin/$str
done

#################
# Header Files
#################
rm -f /usr/include/python2.5
ln -s /opt/iexpress/python/include/python2.5 /usr/include/python2.5

###################################
#Library Files
####################################
arch=`uname -m`

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

####################################
exit $exitval
####################################
