#! /bin/sh
VERSION=0023-linux64-20140821
TARGET=/opt/lib/mpide-$VERSION
DISTFILE=/csciloc/ubuntu/Distributions/mpide-$VERSION.tgz
echo "install mpide in $TARGET"
if [ ! -d "$TARGET" ]; then
    cd /opt/lib
    tar xfvz "$DISTFILE"
fi
if [ -f /usr/local/bin/mpide ]; then
   rm -r /usr/local/bin/mpide
fi
ln -s "$TARGET/mpide" /usr/local/bin/mpide 
