#!/bin/bash

# Make sure that IDL is available

if [ -d /zshare ]; then
	zshare=/zshare
else
	zshare=/home/$SMEI_ACCOUNT
fi

if [ -d $zshare/matlab74 ]; then
	if [ -z "$(which matlab 2> /dev/null)" ]; then
		rm -f $HOME/bin/matlab
		ln -s $zshare/matlab74/bin/matlab $HOME/bin/matlab
	fi
fi
