#!/bin/sh

touch /Applications/qgle.check 2>/dev/null
QGLEDIR=
if test -f /Applications/qgle.check; then
	QGLEDIR=/Applications
else
	QGLEDIR=~/Applications
fi
rm -f /Applications/qgle.check 2>/dev/null
rm -rf $QGLEDIR/qgle.app
cp -r src/gui/qgle.app $QGLEDIR/

echo ""
echo "****************************************************************"
echo "QGLE has been installed in: $QGLEDIR/qgle.app"
echo "****************************************************************"
