#! /bin/csh -f
set noglob

# setenv OLD_OLWM

if ( ! -e '/devices' ) then
# set arch = 'sun4'
  echo 
  echo ''
  echo  'This is the SOLARIS SEDIT version.'
  echo  'Please install the SUN OS 4.1.3 version on a new directory.'
  echo ''
  exit
else
  set arch = 'sparc'                  # Solaris 2
endif

if ( $?DISPLAY ) then
  set bin = 'mbin'                # MOTIF version
else
  if ( $?WINDOW_PARENT ) then
     set bin = 'sbin'                 # SUNVIEW version
  else
     set bin = 'cbin'                 # CURSES version
  endif
endif

set a = $0
set b = $a:h
set c = $a:t

if ( $b == $c ) then
   set p = $cwd
else
   set p = $b
endif

source $p/set_ldpath

$p/$bin/$arch/xed  $argv
