#!/bin/sh
# ESP Package Manager v3.7.0
# echo Command after installing
# searching for the PRODUCTINSTALLLOCATION for the different platforms
platform=`uname -s`
case $platform in
SunOS)
  PRODUCTINSTALLLOCATION="$BASEDIR"
  ;;
Linux)
  PRODUCTINSTALLLOCATION="$RPM_INSTALL_PREFIX"
  ;;
*)
  PRODUCTINSTALLLOCATION="$BASEDIR" 
  ;;
esac

if [ -d $PRODUCTINSTALLLOCATION/program/python-core-2.3.4 ]
then
  ln -s python-core-2.3.4 $PRODUCTINSTALLLOCATION/program/python-core >/dev/null 2>&1
fi

if [ -f $PRODUCTINSTALLLOCATION/program/python.sh ]
then
  ln -s python.sh $PRODUCTINSTALLLOCATION/program/python >/dev/null 2>&1
fi

if [ -f $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python ]
then
  chmod +x $PRODUCTINSTALLLOCATION/program/python-core-2.3.4/bin/python
fi

exit 0
