#!/bin/bash
#
# Date: Wed, 16 May 2001 15:11:08 +0200
#
# I made  this script  from the original ewrapper.sh for a linux-on-a-floppy
# project i'm playing with.
# The main difference  to the original is that you don't have all this e3xx
# links laying around and that you can call things with their real names
# (that's user friendly). 
# "pico" is a demo for any other filename below. Copy to "emacs" etc. if you want,
# or create some links to this script.
# (c) 2001 Tito <farmatito@tiscalinet.it>
#
#
E3_PATH=/usr/local/bin
case $0 in
   *ws|*wordstar)
   E3=e3ws
   ;;
   *vi)
   E3=e3vi
   ;;   
   *em|*emacs)
   E3=e3em
   ;;
   *pi|*pico)
   E3=e3pi
   ;;
   *ne|*nedit)
   E3=e3ne
   ;;
   *)
   echo "e3: improper emulation! ($0).Use emacs,wordstar,vi,pico,nedit"
   ;;
esac
if [ $@ =  ] 2>/dev/null
then
	ln -s $E3_PATH/e3  $E3_PATH/$E3
	$E3_PATH/$E3
	rm -f $E3_PATH/$E3 
else 
	for file in $@
	do
	ln -s $E3_PATH/e3  $E3_PATH/$E3
	$E3_PATH/$E3 $file
	rm -f $E3_PATH/$E3 
	done

fi 











