#! /bin/sh
### Project : efm
### Version : 1.95-beta-rc01
### File : esdfm
### Author : P.L. Nageoire
### Date : Thu Jun 16 17:03:05 2005
### Licence : GPL
######################################################################
### ./main/bin/efm.def.  Generated from efm.def.in by configure.
######################################################################

    if [ -f /etc/emacspeak.conf ]
    then
    . /etc/emacspeak.conf
fi

if [ -f $HOME/.emacs ]
then
	INITSTR="-l $HOME/.emacs"
fi

CL_ALL=""
for CL in $* ; do
	if [ "$CL" = "-o" ]; then
		DTK_PROGRAM=stereo-outloud
		export DTK_PROGRAM
                elif [ "$CL" = "-d" ]; then
		DTK_PROGRAM=dtk-soft
		export DTK_PROGRAM
	elif [ "$CL" = "-q" ]; then
		INITSTR=""
	else
		CL_ALL="$CL_ALL $CL"
	fi
done

exec emacs -q --debug-init -l /usr/share/emacs/site-lisp/esdfm/esdfm-client.el $INITSTR $CL_ALL