Rewrite csh scripts in sh, use sh instead of csh in scripts
[oweals/cde.git] / cde / programs / dtmail / dtmail / DebugBento
1 #!/bin/sh
2 #
3 # A script that aids in debugging and testing dtmail
4 #
5 if [ `uname -s` != SunOS ]
6  then
7         echo "Only support SunOS"
8         exit 1
9 endif
10
11 export DT_MAIL=$HOME/INBOX
12 export DEFAULT_BACKEND=Bento
13 export LD_LIBRARY_PATH=../libDtMail:../../../lib/Bento:../../../binstall/lib:$LD_LIBRARY_PATH
14 ldd -r dtmail
15 if [ -f core ]
16  then
17         exec debugger dtmail core &
18 else
19         exec debugger dtmail &
20 endif