#!/bin/sh

if [ -f /etc/profile.d/esdl.sh ]; then
	. /etc/profile.d/esdl.sh
fi

for conf in ${HOME}/.wings3d.rc /etc/wings3d.rc; do
	if [ -f ${conf} ]; then
		. ${conf}
		break
	fi
done

exec /usr/bin/erl -noinput -smp disable -pa ${ESDL_PATH}/ebin -s wings_start start_halt "$@"
